Movatterモバイル変換


[0]ホーム

URL:


recommender

package
v0.257.0Latest Latest
Warning

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

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

Details

Repository

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

Links

Documentation

Overview

Package recommender provides access to the Recommender API.

For product documentation, see:https://cloud.google.com/recommender/docs/

Library status

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

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

Creating a client

Usage example:

import "google.golang.org/api/recommender/v1beta1"...ctx := context.Background()recommenderService, err := recommender.NewService(ctx)

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

Other authentication options

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

recommenderService, err := recommender.NewService(ctx, option.WithAPIKey("AIza..."))

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

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

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

Index

Constants

View Source
const (// See, edit, configure, and delete your Google Cloud data and see the email// address for your Google Account.CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform")

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

typeBillingAccountsLocationsInsightTypesGetConfigCalladded inv0.98.0

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

func (*BillingAccountsLocationsInsightTypesGetConfigCall)Contextadded inv0.98.0

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

func (*BillingAccountsLocationsInsightTypesGetConfigCall)Doadded inv0.98.0

Do executes the "recommender.billingAccounts.locations.insightTypes.getConfig" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1InsightTypeConfig.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*BillingAccountsLocationsInsightTypesGetConfigCall)Fieldsadded inv0.98.0

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

func (*BillingAccountsLocationsInsightTypesGetConfigCall)Headeradded inv0.98.0

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

func (*BillingAccountsLocationsInsightTypesGetConfigCall)IfNoneMatchadded inv0.98.0

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

typeBillingAccountsLocationsInsightTypesInsightsGetCalladded inv0.37.0

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

func (*BillingAccountsLocationsInsightTypesInsightsGetCall)Contextadded inv0.37.0

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

func (*BillingAccountsLocationsInsightTypesInsightsGetCall)Doadded inv0.37.0

Do executes the "recommender.billingAccounts.locations.insightTypes.insights.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Insight.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*BillingAccountsLocationsInsightTypesInsightsGetCall)Fieldsadded inv0.37.0

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

func (*BillingAccountsLocationsInsightTypesInsightsGetCall)Headeradded inv0.37.0

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

func (*BillingAccountsLocationsInsightTypesInsightsGetCall)IfNoneMatchadded inv0.37.0

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

typeBillingAccountsLocationsInsightTypesInsightsListCalladded inv0.37.0

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

func (*BillingAccountsLocationsInsightTypesInsightsListCall)Contextadded inv0.37.0

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

func (*BillingAccountsLocationsInsightTypesInsightsListCall)Doadded inv0.37.0

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

func (*BillingAccountsLocationsInsightTypesInsightsListCall)Fieldsadded inv0.37.0

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

func (*BillingAccountsLocationsInsightTypesInsightsListCall)Filteradded inv0.37.0

Filter sets the optional parameter "filter": Filter expression to restrictthe insights returned. Supported filter fields: * `stateInfo.state` *`insightSubtype` * `severity` * `targetResources` Examples: *`stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `insightSubtype= PERMISSIONS_USAGE` * `severity = CRITICAL OR severity = HIGH` *`targetResources ://compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity =HIGH)` The max allowed filter length is 500 characters. (These expressionsare based on the filter language described athttps://google.aip.dev/160)

func (*BillingAccountsLocationsInsightTypesInsightsListCall)Headeradded inv0.37.0

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

func (*BillingAccountsLocationsInsightTypesInsightsListCall)IfNoneMatchadded inv0.37.0

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

func (*BillingAccountsLocationsInsightTypesInsightsListCall)PageSizeadded inv0.37.0

PageSize sets the optional parameter "pageSize": The maximum number ofresults to return from this request. Non-positive values are ignored. If notspecified, the server will determine the number of results to return.

func (*BillingAccountsLocationsInsightTypesInsightsListCall)PageTokenadded inv0.37.0

PageToken sets the optional parameter "pageToken": If present, retrieves thenext batch of results from the preceding call to this method. `page_token`must be the value of `next_page_token` from the previous response. Thevalues of other method parameters must be identical to those in the previouscall.

func (*BillingAccountsLocationsInsightTypesInsightsListCall)Pagesadded inv0.37.0

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typeBillingAccountsLocationsInsightTypesInsightsMarkAcceptedCalladded inv0.37.0

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

func (*BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall)Contextadded inv0.37.0

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

func (*BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall)Doadded inv0.37.0

Do executes the "recommender.billingAccounts.locations.insightTypes.insights.markAccepted" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Insight.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall)Fieldsadded inv0.37.0

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

func (*BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall)Headeradded inv0.37.0

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

typeBillingAccountsLocationsInsightTypesInsightsServiceadded inv0.37.0

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

funcNewBillingAccountsLocationsInsightTypesInsightsServiceadded inv0.37.0

func NewBillingAccountsLocationsInsightTypesInsightsService(s *Service) *BillingAccountsLocationsInsightTypesInsightsService

func (*BillingAccountsLocationsInsightTypesInsightsService)Getadded inv0.37.0

Get: Gets the requested insight. Requires the recommender.*.get IAMpermission for the specified insight type.

- name: Name of the insight.

func (*BillingAccountsLocationsInsightTypesInsightsService)Listadded inv0.37.0

List: Lists insights for the specified Cloud Resource. Requires therecommender.*.list IAM permission for the specified insight type.

  • parent: The container resource on which to execute the request. Acceptableformats: *`projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` *`projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`*`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` *`folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`*`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` LOCATION here refers to GCP Locations:https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers tosupported insight types:https://cloud.google.com/recommender/docs/insights/insight-types.

func (*BillingAccountsLocationsInsightTypesInsightsService)MarkAcceptedadded inv0.37.0

MarkAccepted: Marks the Insight State as Accepted. Users can use this methodto indicate to the Recommender API that they have applied some action basedon the insight. This stops the insight content from being updated.MarkInsightAccepted can be applied to insights in ACTIVE state. Requires therecommender.*.update IAM permission for the specified insight.

- name: Name of the insight.

typeBillingAccountsLocationsInsightTypesServiceadded inv0.37.0

type BillingAccountsLocationsInsightTypesService struct {Insights *BillingAccountsLocationsInsightTypesInsightsService// contains filtered or unexported fields}

funcNewBillingAccountsLocationsInsightTypesServiceadded inv0.37.0

func NewBillingAccountsLocationsInsightTypesService(s *Service) *BillingAccountsLocationsInsightTypesService

func (*BillingAccountsLocationsInsightTypesService)GetConfigadded inv0.98.0

GetConfig: Gets the requested InsightTypeConfig. There is only one instanceof the config for each InsightType.

  • name: Name of the InsightTypeConfig to get. Acceptable formats: *`projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` *`projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` *`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` *`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config`.

func (*BillingAccountsLocationsInsightTypesService)UpdateConfigadded inv0.98.0

UpdateConfig: Updates an InsightTypeConfig change. This will create a newrevision of the config.

  • name: Identifier. Name of insight type config. Eg,projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config.

typeBillingAccountsLocationsInsightTypesUpdateConfigCalladded inv0.98.0

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

func (*BillingAccountsLocationsInsightTypesUpdateConfigCall)Contextadded inv0.98.0

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

func (*BillingAccountsLocationsInsightTypesUpdateConfigCall)Doadded inv0.98.0

Do executes the "recommender.billingAccounts.locations.insightTypes.updateConfig" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1InsightTypeConfig.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*BillingAccountsLocationsInsightTypesUpdateConfigCall)Fieldsadded inv0.98.0

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

func (*BillingAccountsLocationsInsightTypesUpdateConfigCall)Headeradded inv0.98.0

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

func (*BillingAccountsLocationsInsightTypesUpdateConfigCall)UpdateMaskadded inv0.98.0

UpdateMask sets the optional parameter "updateMask": The list of fields tobe updated.

func (*BillingAccountsLocationsInsightTypesUpdateConfigCall)ValidateOnlyadded inv0.98.0

ValidateOnly sets the optional parameter "validateOnly": If true, validatethe request and preview the change, but do not actually update it.

typeBillingAccountsLocationsListCalladded inv0.156.0

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

func (*BillingAccountsLocationsListCall)Contextadded inv0.156.0

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

func (*BillingAccountsLocationsListCall)Doadded inv0.156.0

Do executes the "recommender.billingAccounts.locations.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudLocationListLocationsResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*BillingAccountsLocationsListCall)ExtraLocationTypesadded inv0.229.0

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

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

func (*BillingAccountsLocationsListCall)Fieldsadded inv0.156.0

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

func (*BillingAccountsLocationsListCall)Filteradded inv0.156.0

Filter sets the optional parameter "filter": A filter to narrow down resultsto a preferred subset. The filtering language accepts strings like"displayName=tokyo", and is documented in more detail in AIP-160(https://google.aip.dev/160).

func (*BillingAccountsLocationsListCall)Headeradded inv0.156.0

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

func (*BillingAccountsLocationsListCall)IfNoneMatchadded inv0.156.0

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

func (*BillingAccountsLocationsListCall)PageSizeadded inv0.156.0

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

func (*BillingAccountsLocationsListCall)PageTokenadded inv0.156.0

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

func (*BillingAccountsLocationsListCall)Pagesadded inv0.156.0

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typeBillingAccountsLocationsRecommendersGetConfigCalladded inv0.98.0

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

func (*BillingAccountsLocationsRecommendersGetConfigCall)Contextadded inv0.98.0

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

func (*BillingAccountsLocationsRecommendersGetConfigCall)Doadded inv0.98.0

Do executes the "recommender.billingAccounts.locations.recommenders.getConfig" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1RecommenderConfig.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*BillingAccountsLocationsRecommendersGetConfigCall)Fieldsadded inv0.98.0

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

func (*BillingAccountsLocationsRecommendersGetConfigCall)Headeradded inv0.98.0

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

func (*BillingAccountsLocationsRecommendersGetConfigCall)IfNoneMatchadded inv0.98.0

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

typeBillingAccountsLocationsRecommendersRecommendationsGetCalladded inv0.37.0

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

func (*BillingAccountsLocationsRecommendersRecommendationsGetCall)Contextadded inv0.37.0

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

func (*BillingAccountsLocationsRecommendersRecommendationsGetCall)Doadded inv0.37.0

Do executes the "recommender.billingAccounts.locations.recommenders.recommendations.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*BillingAccountsLocationsRecommendersRecommendationsGetCall)Fieldsadded inv0.37.0

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

func (*BillingAccountsLocationsRecommendersRecommendationsGetCall)Headeradded inv0.37.0

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

func (*BillingAccountsLocationsRecommendersRecommendationsGetCall)IfNoneMatchadded inv0.37.0

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

typeBillingAccountsLocationsRecommendersRecommendationsListCalladded inv0.37.0

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

func (*BillingAccountsLocationsRecommendersRecommendationsListCall)Contextadded inv0.37.0

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

func (*BillingAccountsLocationsRecommendersRecommendationsListCall)Doadded inv0.37.0

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

func (*BillingAccountsLocationsRecommendersRecommendationsListCall)Fieldsadded inv0.37.0

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

func (*BillingAccountsLocationsRecommendersRecommendationsListCall)Filteradded inv0.37.0

Filter sets the optional parameter "filter": Filter expression to restrictthe recommendations returned. Supported filter fields: * `state_info.state`* `recommenderSubtype` * `priority` * `targetResources` Examples: *`stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` *`recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` *`priority = P1 OR priority = P2` * `targetResources ://compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)` Themax allowed filter length is 500 characters. (These expressions are based onthe filter language described athttps://google.aip.dev/160)

func (*BillingAccountsLocationsRecommendersRecommendationsListCall)Headeradded inv0.37.0

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

func (*BillingAccountsLocationsRecommendersRecommendationsListCall)IfNoneMatchadded inv0.37.0

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

func (*BillingAccountsLocationsRecommendersRecommendationsListCall)PageSizeadded inv0.37.0

PageSize sets the optional parameter "pageSize": The maximum number ofresults to return from this request. Non-positive values are ignored. If notspecified, the server will determine the number of results to return.

func (*BillingAccountsLocationsRecommendersRecommendationsListCall)PageTokenadded inv0.37.0

PageToken sets the optional parameter "pageToken": If present, retrieves thenext batch of results from the preceding call to this method. `page_token`must be the value of `next_page_token` from the previous response. Thevalues of other method parameters must be identical to those in the previouscall.

func (*BillingAccountsLocationsRecommendersRecommendationsListCall)Pagesadded inv0.37.0

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typeBillingAccountsLocationsRecommendersRecommendationsMarkClaimedCalladded inv0.37.0

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

func (*BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall)Contextadded inv0.37.0

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

func (*BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall)Doadded inv0.37.0

Do executes the "recommender.billingAccounts.locations.recommenders.recommendations.markClaimed" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall)Fieldsadded inv0.37.0

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

func (*BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall)Headeradded inv0.37.0

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

typeBillingAccountsLocationsRecommendersRecommendationsMarkDismissedCalladded inv0.107.0

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

func (*BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall)Contextadded inv0.107.0

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

func (*BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall)Doadded inv0.107.0

Do executes the "recommender.billingAccounts.locations.recommenders.recommendations.markDismissed" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall)Fieldsadded inv0.107.0

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

func (*BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall)Headeradded inv0.107.0

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

typeBillingAccountsLocationsRecommendersRecommendationsMarkFailedCalladded inv0.37.0

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

func (*BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall)Contextadded inv0.37.0

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

func (*BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall)Doadded inv0.37.0

Do executes the "recommender.billingAccounts.locations.recommenders.recommendations.markFailed" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall)Fieldsadded inv0.37.0

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

func (*BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall)Headeradded inv0.37.0

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

typeBillingAccountsLocationsRecommendersRecommendationsMarkSucceededCalladded inv0.37.0

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

func (*BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall)Contextadded inv0.37.0

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

func (*BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall)Doadded inv0.37.0

Do executes the "recommender.billingAccounts.locations.recommenders.recommendations.markSucceeded" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall)Fieldsadded inv0.37.0

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

func (*BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall)Headeradded inv0.37.0

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

typeBillingAccountsLocationsRecommendersRecommendationsServiceadded inv0.37.0

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

funcNewBillingAccountsLocationsRecommendersRecommendationsServiceadded inv0.37.0

func NewBillingAccountsLocationsRecommendersRecommendationsService(s *Service) *BillingAccountsLocationsRecommendersRecommendationsService

func (*BillingAccountsLocationsRecommendersRecommendationsService)Getadded inv0.37.0

Get: Gets the requested recommendation. Requires the recommender.*.get IAMpermission for the specified recommender.

- name: Name of the recommendation.

func (*BillingAccountsLocationsRecommendersRecommendationsService)Listadded inv0.37.0

List: Lists recommendations for the specified Cloud Resource. Requires therecommender.*.list IAM permission for the specified recommender.

  • parent: The container resource on which to execute the request. Acceptableformats: *`projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *`projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]`*`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *`folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` LOCATION here refers to GCP Locations:https://cloud.google.com/about/locations/ RECOMMENDER_ID refers tosupported recommenders:https://cloud.google.com/recommender/docs/recommenders.

func (*BillingAccountsLocationsRecommendersRecommendationsService)MarkClaimedadded inv0.37.0

MarkClaimed: Marks the Recommendation State as Claimed. Users can use thismethod to indicate to the Recommender API that they are starting to applythe recommendation themselves. This stops the recommendation content frombeing updated. Associated insights are frozen and placed in the ACCEPTEDstate. MarkRecommendationClaimed can be applied to recommendations inCLAIMED or ACTIVE state. Requires the recommender.*.update IAM permissionfor the specified recommender.

- name: Name of the recommendation.

func (*BillingAccountsLocationsRecommendersRecommendationsService)MarkDismissedadded inv0.107.0

MarkDismissed: Mark the Recommendation State as Dismissed. Users can usethis method to indicate to the Recommender API that an ACTIVE recommendationhas to be marked back as DISMISSED. MarkRecommendationDismissed can beapplied to recommendations in ACTIVE state. Requires therecommender.*.update IAM permission for the specified recommender.

- name: Name of the recommendation.

func (*BillingAccountsLocationsRecommendersRecommendationsService)MarkFailedadded inv0.37.0

MarkFailed: Marks the Recommendation State as Failed. Users can use thismethod to indicate to the Recommender API that they have applied therecommendation themselves, and the operation failed. This stops therecommendation content from being updated. Associated insights are frozenand placed in the ACCEPTED state. MarkRecommendationFailed can be applied torecommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires therecommender.*.update IAM permission for the specified recommender.

- name: Name of the recommendation.

func (*BillingAccountsLocationsRecommendersRecommendationsService)MarkSucceededadded inv0.37.0

MarkSucceeded: Marks the Recommendation State as Succeeded. Users can usethis method to indicate to the Recommender API that they have applied therecommendation themselves, and the operation was successful. This stops therecommendation content from being updated. Associated insights are frozenand placed in the ACCEPTED state. MarkRecommendationSucceeded can be appliedto recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requiresthe recommender.*.update IAM permission for the specified recommender.

- name: Name of the recommendation.

typeBillingAccountsLocationsRecommendersServiceadded inv0.37.0

type BillingAccountsLocationsRecommendersService struct {Recommendations *BillingAccountsLocationsRecommendersRecommendationsService// contains filtered or unexported fields}

funcNewBillingAccountsLocationsRecommendersServiceadded inv0.37.0

func NewBillingAccountsLocationsRecommendersService(s *Service) *BillingAccountsLocationsRecommendersService

func (*BillingAccountsLocationsRecommendersService)GetConfigadded inv0.98.0

GetConfig: Gets the requested Recommender Config. There is only one instanceof the config for each Recommender.

  • name: Name of the Recommendation Config to get. Acceptable formats: *`projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` *`projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` *`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` *`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config`.

func (*BillingAccountsLocationsRecommendersService)UpdateConfigadded inv0.98.0

UpdateConfig: Updates a Recommender Config. This will create a new revisionof the config.

  • name: Identifier. Name of recommender config. Eg,projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config.

typeBillingAccountsLocationsRecommendersUpdateConfigCalladded inv0.98.0

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

func (*BillingAccountsLocationsRecommendersUpdateConfigCall)Contextadded inv0.98.0

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

func (*BillingAccountsLocationsRecommendersUpdateConfigCall)Doadded inv0.98.0

Do executes the "recommender.billingAccounts.locations.recommenders.updateConfig" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1RecommenderConfig.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*BillingAccountsLocationsRecommendersUpdateConfigCall)Fieldsadded inv0.98.0

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

func (*BillingAccountsLocationsRecommendersUpdateConfigCall)Headeradded inv0.98.0

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

func (*BillingAccountsLocationsRecommendersUpdateConfigCall)UpdateMaskadded inv0.98.0

UpdateMask sets the optional parameter "updateMask": The list of fields tobe updated.

func (*BillingAccountsLocationsRecommendersUpdateConfigCall)ValidateOnlyadded inv0.98.0

ValidateOnly sets the optional parameter "validateOnly": If true, validatethe request and preview the change, but do not actually update it.

typeBillingAccountsLocationsServiceadded inv0.37.0

type BillingAccountsLocationsService struct {InsightTypes *BillingAccountsLocationsInsightTypesServiceRecommenders *BillingAccountsLocationsRecommendersService// contains filtered or unexported fields}

funcNewBillingAccountsLocationsServiceadded inv0.37.0

func NewBillingAccountsLocationsService(s *Service) *BillingAccountsLocationsService

func (*BillingAccountsLocationsService)Listadded inv0.156.0

List: Lists locations with recommendations or insights.

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

typeBillingAccountsServiceadded inv0.37.0

type BillingAccountsService struct {Locations *BillingAccountsLocationsService// contains filtered or unexported fields}

funcNewBillingAccountsServiceadded inv0.37.0

func NewBillingAccountsService(s *Service) *BillingAccountsService

typeFoldersLocationsInsightTypesInsightsGetCalladded inv0.37.0

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

func (*FoldersLocationsInsightTypesInsightsGetCall)Contextadded inv0.37.0

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

func (*FoldersLocationsInsightTypesInsightsGetCall)Doadded inv0.37.0

Do executes the "recommender.folders.locations.insightTypes.insights.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Insight.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*FoldersLocationsInsightTypesInsightsGetCall)Fieldsadded inv0.37.0

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

func (*FoldersLocationsInsightTypesInsightsGetCall)Headeradded inv0.37.0

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

func (*FoldersLocationsInsightTypesInsightsGetCall)IfNoneMatchadded inv0.37.0

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

typeFoldersLocationsInsightTypesInsightsListCalladded inv0.37.0

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

func (*FoldersLocationsInsightTypesInsightsListCall)Contextadded inv0.37.0

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

func (*FoldersLocationsInsightTypesInsightsListCall)Doadded inv0.37.0

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

func (*FoldersLocationsInsightTypesInsightsListCall)Fieldsadded inv0.37.0

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

func (*FoldersLocationsInsightTypesInsightsListCall)Filteradded inv0.37.0

Filter sets the optional parameter "filter": Filter expression to restrictthe insights returned. Supported filter fields: * `stateInfo.state` *`insightSubtype` * `severity` * `targetResources` Examples: *`stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `insightSubtype= PERMISSIONS_USAGE` * `severity = CRITICAL OR severity = HIGH` *`targetResources ://compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity =HIGH)` The max allowed filter length is 500 characters. (These expressionsare based on the filter language described athttps://google.aip.dev/160)

func (*FoldersLocationsInsightTypesInsightsListCall)Headeradded inv0.37.0

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

func (*FoldersLocationsInsightTypesInsightsListCall)IfNoneMatchadded inv0.37.0

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

func (*FoldersLocationsInsightTypesInsightsListCall)PageSizeadded inv0.37.0

PageSize sets the optional parameter "pageSize": The maximum number ofresults to return from this request. Non-positive values are ignored. If notspecified, the server will determine the number of results to return.

func (*FoldersLocationsInsightTypesInsightsListCall)PageTokenadded inv0.37.0

PageToken sets the optional parameter "pageToken": If present, retrieves thenext batch of results from the preceding call to this method. `page_token`must be the value of `next_page_token` from the previous response. Thevalues of other method parameters must be identical to those in the previouscall.

func (*FoldersLocationsInsightTypesInsightsListCall)Pagesadded inv0.37.0

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typeFoldersLocationsInsightTypesInsightsMarkAcceptedCalladded inv0.37.0

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

func (*FoldersLocationsInsightTypesInsightsMarkAcceptedCall)Contextadded inv0.37.0

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

func (*FoldersLocationsInsightTypesInsightsMarkAcceptedCall)Doadded inv0.37.0

Do executes the "recommender.folders.locations.insightTypes.insights.markAccepted" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Insight.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*FoldersLocationsInsightTypesInsightsMarkAcceptedCall)Fieldsadded inv0.37.0

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

func (*FoldersLocationsInsightTypesInsightsMarkAcceptedCall)Headeradded inv0.37.0

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

typeFoldersLocationsInsightTypesInsightsServiceadded inv0.37.0

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

funcNewFoldersLocationsInsightTypesInsightsServiceadded inv0.37.0

func NewFoldersLocationsInsightTypesInsightsService(s *Service) *FoldersLocationsInsightTypesInsightsService

func (*FoldersLocationsInsightTypesInsightsService)Getadded inv0.37.0

Get: Gets the requested insight. Requires the recommender.*.get IAMpermission for the specified insight type.

- name: Name of the insight.

func (*FoldersLocationsInsightTypesInsightsService)Listadded inv0.37.0

List: Lists insights for the specified Cloud Resource. Requires therecommender.*.list IAM permission for the specified insight type.

  • parent: The container resource on which to execute the request. Acceptableformats: *`projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` *`projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`*`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` *`folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`*`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` LOCATION here refers to GCP Locations:https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers tosupported insight types:https://cloud.google.com/recommender/docs/insights/insight-types.

func (*FoldersLocationsInsightTypesInsightsService)MarkAcceptedadded inv0.37.0

MarkAccepted: Marks the Insight State as Accepted. Users can use this methodto indicate to the Recommender API that they have applied some action basedon the insight. This stops the insight content from being updated.MarkInsightAccepted can be applied to insights in ACTIVE state. Requires therecommender.*.update IAM permission for the specified insight.

- name: Name of the insight.

typeFoldersLocationsInsightTypesServiceadded inv0.37.0

type FoldersLocationsInsightTypesService struct {Insights *FoldersLocationsInsightTypesInsightsService// contains filtered or unexported fields}

funcNewFoldersLocationsInsightTypesServiceadded inv0.37.0

func NewFoldersLocationsInsightTypesService(s *Service) *FoldersLocationsInsightTypesService

typeFoldersLocationsListCalladded inv0.156.0

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

func (*FoldersLocationsListCall)Contextadded inv0.156.0

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

func (*FoldersLocationsListCall)Doadded inv0.156.0

Do executes the "recommender.folders.locations.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudLocationListLocationsResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*FoldersLocationsListCall)ExtraLocationTypesadded inv0.229.0

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

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

func (*FoldersLocationsListCall)Fieldsadded inv0.156.0

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

func (*FoldersLocationsListCall)Filteradded inv0.156.0

Filter sets the optional parameter "filter": A filter to narrow down resultsto a preferred subset. The filtering language accepts strings like"displayName=tokyo", and is documented in more detail in AIP-160(https://google.aip.dev/160).

func (*FoldersLocationsListCall)Headeradded inv0.156.0

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

func (*FoldersLocationsListCall)IfNoneMatchadded inv0.156.0

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

func (*FoldersLocationsListCall)PageSizeadded inv0.156.0

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

func (*FoldersLocationsListCall)PageTokenadded inv0.156.0

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

func (*FoldersLocationsListCall)Pagesadded inv0.156.0

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typeFoldersLocationsRecommendersRecommendationsGetCalladded inv0.37.0

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

func (*FoldersLocationsRecommendersRecommendationsGetCall)Contextadded inv0.37.0

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

func (*FoldersLocationsRecommendersRecommendationsGetCall)Doadded inv0.37.0

Do executes the "recommender.folders.locations.recommenders.recommendations.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*FoldersLocationsRecommendersRecommendationsGetCall)Fieldsadded inv0.37.0

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

func (*FoldersLocationsRecommendersRecommendationsGetCall)Headeradded inv0.37.0

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

func (*FoldersLocationsRecommendersRecommendationsGetCall)IfNoneMatchadded inv0.37.0

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

typeFoldersLocationsRecommendersRecommendationsListCalladded inv0.37.0

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

func (*FoldersLocationsRecommendersRecommendationsListCall)Contextadded inv0.37.0

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

func (*FoldersLocationsRecommendersRecommendationsListCall)Doadded inv0.37.0

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

func (*FoldersLocationsRecommendersRecommendationsListCall)Fieldsadded inv0.37.0

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

func (*FoldersLocationsRecommendersRecommendationsListCall)Filteradded inv0.37.0

Filter sets the optional parameter "filter": Filter expression to restrictthe recommendations returned. Supported filter fields: * `state_info.state`* `recommenderSubtype` * `priority` * `targetResources` Examples: *`stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` *`recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` *`priority = P1 OR priority = P2` * `targetResources ://compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)` Themax allowed filter length is 500 characters. (These expressions are based onthe filter language described athttps://google.aip.dev/160)

func (*FoldersLocationsRecommendersRecommendationsListCall)Headeradded inv0.37.0

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

func (*FoldersLocationsRecommendersRecommendationsListCall)IfNoneMatchadded inv0.37.0

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

func (*FoldersLocationsRecommendersRecommendationsListCall)PageSizeadded inv0.37.0

PageSize sets the optional parameter "pageSize": The maximum number ofresults to return from this request. Non-positive values are ignored. If notspecified, the server will determine the number of results to return.

func (*FoldersLocationsRecommendersRecommendationsListCall)PageTokenadded inv0.37.0

PageToken sets the optional parameter "pageToken": If present, retrieves thenext batch of results from the preceding call to this method. `page_token`must be the value of `next_page_token` from the previous response. Thevalues of other method parameters must be identical to those in the previouscall.

func (*FoldersLocationsRecommendersRecommendationsListCall)Pagesadded inv0.37.0

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typeFoldersLocationsRecommendersRecommendationsMarkClaimedCalladded inv0.37.0

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

func (*FoldersLocationsRecommendersRecommendationsMarkClaimedCall)Contextadded inv0.37.0

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

func (*FoldersLocationsRecommendersRecommendationsMarkClaimedCall)Doadded inv0.37.0

Do executes the "recommender.folders.locations.recommenders.recommendations.markClaimed" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*FoldersLocationsRecommendersRecommendationsMarkClaimedCall)Fieldsadded inv0.37.0

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

func (*FoldersLocationsRecommendersRecommendationsMarkClaimedCall)Headeradded inv0.37.0

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

typeFoldersLocationsRecommendersRecommendationsMarkDismissedCalladded inv0.107.0

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

func (*FoldersLocationsRecommendersRecommendationsMarkDismissedCall)Contextadded inv0.107.0

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

func (*FoldersLocationsRecommendersRecommendationsMarkDismissedCall)Doadded inv0.107.0

Do executes the "recommender.folders.locations.recommenders.recommendations.markDismissed" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*FoldersLocationsRecommendersRecommendationsMarkDismissedCall)Fieldsadded inv0.107.0

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

func (*FoldersLocationsRecommendersRecommendationsMarkDismissedCall)Headeradded inv0.107.0

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

typeFoldersLocationsRecommendersRecommendationsMarkFailedCalladded inv0.37.0

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

func (*FoldersLocationsRecommendersRecommendationsMarkFailedCall)Contextadded inv0.37.0

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

func (*FoldersLocationsRecommendersRecommendationsMarkFailedCall)Doadded inv0.37.0

Do executes the "recommender.folders.locations.recommenders.recommendations.markFailed" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*FoldersLocationsRecommendersRecommendationsMarkFailedCall)Fieldsadded inv0.37.0

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

func (*FoldersLocationsRecommendersRecommendationsMarkFailedCall)Headeradded inv0.37.0

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

typeFoldersLocationsRecommendersRecommendationsMarkSucceededCalladded inv0.37.0

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

func (*FoldersLocationsRecommendersRecommendationsMarkSucceededCall)Contextadded inv0.37.0

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

func (*FoldersLocationsRecommendersRecommendationsMarkSucceededCall)Doadded inv0.37.0

Do executes the "recommender.folders.locations.recommenders.recommendations.markSucceeded" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*FoldersLocationsRecommendersRecommendationsMarkSucceededCall)Fieldsadded inv0.37.0

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

func (*FoldersLocationsRecommendersRecommendationsMarkSucceededCall)Headeradded inv0.37.0

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

typeFoldersLocationsRecommendersRecommendationsServiceadded inv0.37.0

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

funcNewFoldersLocationsRecommendersRecommendationsServiceadded inv0.37.0

func NewFoldersLocationsRecommendersRecommendationsService(s *Service) *FoldersLocationsRecommendersRecommendationsService

func (*FoldersLocationsRecommendersRecommendationsService)Getadded inv0.37.0

Get: Gets the requested recommendation. Requires the recommender.*.get IAMpermission for the specified recommender.

- name: Name of the recommendation.

func (*FoldersLocationsRecommendersRecommendationsService)Listadded inv0.37.0

List: Lists recommendations for the specified Cloud Resource. Requires therecommender.*.list IAM permission for the specified recommender.

  • parent: The container resource on which to execute the request. Acceptableformats: *`projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *`projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]`*`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *`folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` LOCATION here refers to GCP Locations:https://cloud.google.com/about/locations/ RECOMMENDER_ID refers tosupported recommenders:https://cloud.google.com/recommender/docs/recommenders.

func (*FoldersLocationsRecommendersRecommendationsService)MarkClaimedadded inv0.37.0

MarkClaimed: Marks the Recommendation State as Claimed. Users can use thismethod to indicate to the Recommender API that they are starting to applythe recommendation themselves. This stops the recommendation content frombeing updated. Associated insights are frozen and placed in the ACCEPTEDstate. MarkRecommendationClaimed can be applied to recommendations inCLAIMED or ACTIVE state. Requires the recommender.*.update IAM permissionfor the specified recommender.

- name: Name of the recommendation.

func (*FoldersLocationsRecommendersRecommendationsService)MarkDismissedadded inv0.107.0

MarkDismissed: Mark the Recommendation State as Dismissed. Users can usethis method to indicate to the Recommender API that an ACTIVE recommendationhas to be marked back as DISMISSED. MarkRecommendationDismissed can beapplied to recommendations in ACTIVE state. Requires therecommender.*.update IAM permission for the specified recommender.

- name: Name of the recommendation.

func (*FoldersLocationsRecommendersRecommendationsService)MarkFailedadded inv0.37.0

MarkFailed: Marks the Recommendation State as Failed. Users can use thismethod to indicate to the Recommender API that they have applied therecommendation themselves, and the operation failed. This stops therecommendation content from being updated. Associated insights are frozenand placed in the ACCEPTED state. MarkRecommendationFailed can be applied torecommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires therecommender.*.update IAM permission for the specified recommender.

- name: Name of the recommendation.

func (*FoldersLocationsRecommendersRecommendationsService)MarkSucceededadded inv0.37.0

MarkSucceeded: Marks the Recommendation State as Succeeded. Users can usethis method to indicate to the Recommender API that they have applied therecommendation themselves, and the operation was successful. This stops therecommendation content from being updated. Associated insights are frozenand placed in the ACCEPTED state. MarkRecommendationSucceeded can be appliedto recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requiresthe recommender.*.update IAM permission for the specified recommender.

- name: Name of the recommendation.

typeFoldersLocationsRecommendersServiceadded inv0.37.0

type FoldersLocationsRecommendersService struct {Recommendations *FoldersLocationsRecommendersRecommendationsService// contains filtered or unexported fields}

funcNewFoldersLocationsRecommendersServiceadded inv0.37.0

func NewFoldersLocationsRecommendersService(s *Service) *FoldersLocationsRecommendersService

typeFoldersLocationsServiceadded inv0.37.0

type FoldersLocationsService struct {InsightTypes *FoldersLocationsInsightTypesServiceRecommenders *FoldersLocationsRecommendersService// contains filtered or unexported fields}

funcNewFoldersLocationsServiceadded inv0.37.0

func NewFoldersLocationsService(s *Service) *FoldersLocationsService

func (*FoldersLocationsService)Listadded inv0.156.0

List: Lists locations with recommendations or insights.

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

typeFoldersServiceadded inv0.37.0

type FoldersService struct {Locations *FoldersLocationsService// contains filtered or unexported fields}

funcNewFoldersServiceadded inv0.37.0

func NewFoldersService(s *Service) *FoldersService

typeGoogleCloudLocationListLocationsResponseadded inv0.156.0

type GoogleCloudLocationListLocationsResponse struct {// Locations: A list of locations that matches the specified filter in the// request.Locations []*GoogleCloudLocationLocation `json:"locations,omitempty"`// NextPageToken: The standard List next-page token.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Locations") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Locations") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudLocationListLocationsResponse: The response message forLocations.ListLocations.

func (GoogleCloudLocationListLocationsResponse)MarshalJSONadded inv0.156.0

typeGoogleCloudLocationLocationadded inv0.156.0

type GoogleCloudLocationLocation struct {// DisplayName: The friendly name for this location, typically a nearby city// name. For example, "Tokyo".DisplayNamestring `json:"displayName,omitempty"`// Labels: Cross-service attributes for the location. For example// {"cloud.googleapis.com/region": "us-east1"}Labels map[string]string `json:"labels,omitempty"`// LocationId: The canonical id for this location. For example: "us-east1".LocationIdstring `json:"locationId,omitempty"`// Metadata: Service-specific metadata. For example the available capacity at// the given location.Metadatagoogleapi.RawMessage `json:"metadata,omitempty"`// Name: Resource name for the location, which may vary between// implementations. For example:// "projects/example-project/locations/us-east1"Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "DisplayName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DisplayName") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudLocationLocation: A resource that represents a Google Cloudlocation.

func (GoogleCloudLocationLocation)MarshalJSONadded inv0.156.0

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

typeGoogleCloudRecommenderV1beta1CostProjection

type GoogleCloudRecommenderV1beta1CostProjection struct {// Cost: An approximate projection on amount saved or amount incurred. Negative// cost units indicate cost savings and positive cost units indicate increase.// See google.type.Money documentation for positive/negative units. A user's// permissions may affect whether the cost is computed using list prices or// custom contract prices.Cost *GoogleTypeMoney `json:"cost,omitempty"`// CostInLocalCurrency: The approximate cost savings in the billing account's// local currency.CostInLocalCurrency *GoogleTypeMoney `json:"costInLocalCurrency,omitempty"`// Duration: Duration for which this cost applies.Durationstring `json:"duration,omitempty"`// PricingType: How the cost is calculated.//// Possible values://   "PRICING_TYPE_UNSPECIFIED" - Default pricing type.//   "LIST_PRICE" - The price listed by GCP for all customers.//   "CUSTOM_PRICE" - A price derived from past usage and billing.PricingTypestring `json:"pricingType,omitempty"`// ForceSendFields is a list of field names (e.g. "Cost") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Cost") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudRecommenderV1beta1CostProjection: Contains metadata about howmuch money a recommendation can save or incur.

func (GoogleCloudRecommenderV1beta1CostProjection)MarshalJSON

typeGoogleCloudRecommenderV1beta1Impact

type GoogleCloudRecommenderV1beta1Impact struct {// Category: Category that is being targeted.//// Possible values://   "CATEGORY_UNSPECIFIED" - Default unspecified category. Don't use directly.//   "COST" - Indicates a potential increase or decrease in cost.//   "SECURITY" - Indicates a potential increase or decrease in security.//   "PERFORMANCE" - Indicates a potential increase or decrease in performance.//   "MANAGEABILITY" - Indicates a potential increase or decrease in// manageability.//   "SUSTAINABILITY" - Indicates a potential increase or decrease in// sustainability.//   "RELIABILITY" - Indicates a potential increase or decrease in reliability.Categorystring `json:"category,omitempty"`// CostProjection: Use with CategoryType.COSTCostProjection *GoogleCloudRecommenderV1beta1CostProjection `json:"costProjection,omitempty"`// ImpactComponents: If populated, the impact contains multiple components. In// this case, the top-level impact contains aggregated values and each// component contains per-service details.ImpactComponents []*GoogleCloudRecommenderV1beta1Impact `json:"impactComponents,omitempty"`// ReliabilityProjection: Use with CategoryType.RELIABILITYReliabilityProjection *GoogleCloudRecommenderV1beta1ReliabilityProjection `json:"reliabilityProjection,omitempty"`// SecurityProjection: Use with CategoryType.SECURITYSecurityProjection *GoogleCloudRecommenderV1beta1SecurityProjection `json:"securityProjection,omitempty"`// Service: The service that this impact is associated with.Servicestring `json:"service,omitempty"`// SustainabilityProjection: Use with CategoryType.SUSTAINABILITYSustainabilityProjection *GoogleCloudRecommenderV1beta1SustainabilityProjection `json:"sustainabilityProjection,omitempty"`// ForceSendFields is a list of field names (e.g. "Category") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Category") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudRecommenderV1beta1Impact: Contains the impact a recommendationcan have for a given category.

func (GoogleCloudRecommenderV1beta1Impact)MarshalJSON

typeGoogleCloudRecommenderV1beta1Insightadded inv0.21.0

type GoogleCloudRecommenderV1beta1Insight struct {// AssociatedRecommendations: Recommendations derived from this insight.AssociatedRecommendations []*GoogleCloudRecommenderV1beta1InsightRecommendationReference `json:"associatedRecommendations,omitempty"`// Category: Category being targeted by the insight.//// Possible values://   "CATEGORY_UNSPECIFIED" - Unspecified category.//   "COST" - The insight is related to cost.//   "SECURITY" - The insight is related to security.//   "PERFORMANCE" - The insight is related to performance.//   "MANAGEABILITY" - This insight is related to manageability.//   "SUSTAINABILITY" - The insight is related to sustainability.//   "RELIABILITY" - The insight is related to reliability.Categorystring `json:"category,omitempty"`// Content: A struct of custom fields to explain the insight. Example:// "grantedPermissionsCount": "1000"Contentgoogleapi.RawMessage `json:"content,omitempty"`// Description: Free-form human readable summary in English. The maximum length// is 500 characters.Descriptionstring `json:"description,omitempty"`// Etag: Fingerprint of the Insight. Provides optimistic locking when updating// states.Etagstring `json:"etag,omitempty"`// InsightSubtype: Insight subtype. Insight content schema will be stable for a// given subtype.InsightSubtypestring `json:"insightSubtype,omitempty"`// LastRefreshTime: Timestamp of the latest data used to generate the insight.LastRefreshTimestring `json:"lastRefreshTime,omitempty"`// Name: Identifier. Name of the insight.Namestring `json:"name,omitempty"`// ObservationPeriod: Observation period that led to the insight. The source// data used to generate the insight ends at last_refresh_time and begins at// (last_refresh_time - observation_period).ObservationPeriodstring `json:"observationPeriod,omitempty"`// Severity: Insight's severity.//// Possible values://   "SEVERITY_UNSPECIFIED" - Insight has unspecified severity.//   "LOW" - Insight has low severity.//   "MEDIUM" - Insight has medium severity.//   "HIGH" - Insight has high severity.//   "CRITICAL" - Insight has critical severity.Severitystring `json:"severity,omitempty"`// StateInfo: Information state and metadata.StateInfo *GoogleCloudRecommenderV1beta1InsightStateInfo `json:"stateInfo,omitempty"`// TargetResources: Fully qualified resource names that this insight is// targeting.TargetResources []string `json:"targetResources,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AssociatedRecommendations")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AssociatedRecommendations") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudRecommenderV1beta1Insight: An insight along with the informationused to derive the insight. The insight may have associated recommendationsas well.

func (GoogleCloudRecommenderV1beta1Insight)MarshalJSONadded inv0.21.0

typeGoogleCloudRecommenderV1beta1InsightRecommendationReferenceadded inv0.21.0

type GoogleCloudRecommenderV1beta1InsightRecommendationReference struct {// Recommendation: Recommendation resource name, e.g.// projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/// recommendations/[RECOMMENDATION_ID]Recommendationstring `json:"recommendation,omitempty"`// ForceSendFields is a list of field names (e.g. "Recommendation") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Recommendation") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudRecommenderV1beta1InsightRecommendationReference: Reference to anassociated recommendation.

func (GoogleCloudRecommenderV1beta1InsightRecommendationReference)MarshalJSONadded inv0.21.0

typeGoogleCloudRecommenderV1beta1InsightStateInfoadded inv0.21.0

type GoogleCloudRecommenderV1beta1InsightStateInfo struct {// State: Insight state.//// Possible values://   "STATE_UNSPECIFIED" - Unspecified state.//   "ACTIVE" - Insight is active. Content for ACTIVE insights can be updated// by Google. ACTIVE insights can be marked DISMISSED OR ACCEPTED.//   "ACCEPTED" - Some action has been taken based on this insight. Insights// become accepted when a recommendation derived from the insight has been// marked CLAIMED, SUCCEEDED, or FAILED. ACTIVE insights can also be marked// ACCEPTED explicitly. Content for ACCEPTED insights is immutable. ACCEPTED// insights can only be marked ACCEPTED (which may update state metadata).//   "DISMISSED" - Insight is dismissed. Content for DISMISSED insights can be// updated by Google. DISMISSED insights can be marked as ACTIVE.Statestring `json:"state,omitempty"`// StateMetadata: A map of metadata for the state, provided by user or// automations systems.StateMetadata map[string]string `json:"stateMetadata,omitempty"`// ForceSendFields is a list of field names (e.g. "State") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "State") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudRecommenderV1beta1InsightStateInfo: Information related toinsight state.

func (GoogleCloudRecommenderV1beta1InsightStateInfo)MarshalJSONadded inv0.21.0

typeGoogleCloudRecommenderV1beta1InsightTypeadded inv0.128.0

type GoogleCloudRecommenderV1beta1InsightType struct {// Name: The insight_type's name in format insightTypes/{insight_type} eg:// insightTypes/google.iam.policy.InsightNamestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Name") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudRecommenderV1beta1InsightType: The type of insight.

func (GoogleCloudRecommenderV1beta1InsightType)MarshalJSONadded inv0.128.0

typeGoogleCloudRecommenderV1beta1InsightTypeConfigadded inv0.61.0

type GoogleCloudRecommenderV1beta1InsightTypeConfig struct {// Annotations: Allows clients to store small amounts of arbitrary data.// Annotations must follow the Kubernetes syntax. The total size of all keys// and values combined is limited to 256k. Key can have 2 segments: prefix// (optional) and name (required), separated by a slash (/). Prefix must be a// DNS subdomain. Name must be 63 characters or less, begin and end with// alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics// between.Annotations map[string]string `json:"annotations,omitempty"`// DisplayName: A user-settable field to provide a human-readable name to be// used in user interfaces.DisplayNamestring `json:"displayName,omitempty"`// Etag: Fingerprint of the InsightTypeConfig. Provides optimistic locking when// updating.Etagstring `json:"etag,omitempty"`// InsightTypeGenerationConfig: InsightTypeGenerationConfig which configures// the generation of insights for this insight type.InsightTypeGenerationConfig *GoogleCloudRecommenderV1beta1InsightTypeGenerationConfig `json:"insightTypeGenerationConfig,omitempty"`// Name: Identifier. Name of insight type config. Eg,// projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]// /configNamestring `json:"name,omitempty"`// RevisionId: Output only. Immutable. The revision ID of the config. A new// revision is committed whenever the config is changed in any way. The format// is an 8-character hexadecimal string.RevisionIdstring `json:"revisionId,omitempty"`// UpdateTime: Last time when the config was updated.UpdateTimestring `json:"updateTime,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Annotations") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Annotations") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudRecommenderV1beta1InsightTypeConfig: Configuration for anInsightType.

func (GoogleCloudRecommenderV1beta1InsightTypeConfig)MarshalJSONadded inv0.61.0

typeGoogleCloudRecommenderV1beta1InsightTypeGenerationConfigadded inv0.61.0

type GoogleCloudRecommenderV1beta1InsightTypeGenerationConfig struct {// Params: Parameters for this InsightTypeGenerationConfig. These configs can// be used by or are applied to all subtypes.Paramsgoogleapi.RawMessage `json:"params,omitempty"`// ForceSendFields is a list of field names (e.g. "Params") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Params") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudRecommenderV1beta1InsightTypeGenerationConfig: A configuration tocustomize the generation of insights. Eg, customizing the lookback periodconsidered when generating a insight.

func (GoogleCloudRecommenderV1beta1InsightTypeGenerationConfig)MarshalJSONadded inv0.61.0

typeGoogleCloudRecommenderV1beta1ListInsightTypesResponseadded inv0.128.0

type GoogleCloudRecommenderV1beta1ListInsightTypesResponse struct {// InsightTypes: The set of recommenders availableInsightTypes []*GoogleCloudRecommenderV1beta1InsightType `json:"insightTypes,omitempty"`// NextPageToken: A token, which can be sent as `page_token` to retrieve the// next page. If this field is omitted, there are no subsequent pages.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "InsightTypes") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "InsightTypes") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudRecommenderV1beta1ListInsightTypesResponse: Response for the`ListInsightTypes` method. Next ID: 3

func (GoogleCloudRecommenderV1beta1ListInsightTypesResponse)MarshalJSONadded inv0.128.0

typeGoogleCloudRecommenderV1beta1ListInsightsResponseadded inv0.21.0

type GoogleCloudRecommenderV1beta1ListInsightsResponse struct {// Insights: The set of insights for the `parent` resource.Insights []*GoogleCloudRecommenderV1beta1Insight `json:"insights,omitempty"`// NextPageToken: A token that can be used to request the next page of results.// This field is empty if there are no additional results.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Insights") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Insights") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudRecommenderV1beta1ListInsightsResponse: Response to the`ListInsights` method.

func (GoogleCloudRecommenderV1beta1ListInsightsResponse)MarshalJSONadded inv0.21.0

typeGoogleCloudRecommenderV1beta1ListRecommendationsResponse

type GoogleCloudRecommenderV1beta1ListRecommendationsResponse struct {// NextPageToken: A token that can be used to request the next page of results.// This field is empty if there are no additional results.NextPageTokenstring `json:"nextPageToken,omitempty"`// Recommendations: The set of recommendations for the `parent` resource.Recommendations []*GoogleCloudRecommenderV1beta1Recommendation `json:"recommendations,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudRecommenderV1beta1ListRecommendationsResponse: Response to the`ListRecommendations` method.

func (GoogleCloudRecommenderV1beta1ListRecommendationsResponse)MarshalJSON

typeGoogleCloudRecommenderV1beta1ListRecommendersResponseadded inv0.128.0

type GoogleCloudRecommenderV1beta1ListRecommendersResponse struct {// NextPageToken: A token, which can be sent as `page_token` to retrieve the// next page. If this field is omitted, there are no subsequent pages.NextPageTokenstring `json:"nextPageToken,omitempty"`// Recommenders: The set of recommenders availableRecommenders []*GoogleCloudRecommenderV1beta1RecommenderType `json:"recommenders,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudRecommenderV1beta1ListRecommendersResponse: Response for the`ListRecommender` method. Next ID: 3

func (GoogleCloudRecommenderV1beta1ListRecommendersResponse)MarshalJSONadded inv0.128.0

typeGoogleCloudRecommenderV1beta1MarkInsightAcceptedRequestadded inv0.21.0

type GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest struct {// Etag: Required. Fingerprint of the Insight. Provides optimistic locking.Etagstring `json:"etag,omitempty"`// StateMetadata: Optional. State properties user wish to include with this// state. Full replace of the current state_metadata.StateMetadata map[string]string `json:"stateMetadata,omitempty"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest: Request for the`MarkInsightAccepted` method.

func (GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest)MarshalJSONadded inv0.21.0

typeGoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest

type GoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest struct {// Etag: Required. Fingerprint of the Recommendation. Provides optimistic// locking.Etagstring `json:"etag,omitempty"`// StateMetadata: State properties to include with this state. Overwrites any// existing `state_metadata`. Keys must match the regex `/^a-z0-9{0,62}$/`.// Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`.StateMetadata map[string]string `json:"stateMetadata,omitempty"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest: Request forthe `MarkRecommendationClaimed` Method.

func (GoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest)MarshalJSON

typeGoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequestadded inv0.107.0

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

GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest: Request forthe `MarkRecommendationDismissed` Method.

func (GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest)MarshalJSONadded inv0.107.0

typeGoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest

type GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest struct {// Etag: Required. Fingerprint of the Recommendation. Provides optimistic// locking.Etagstring `json:"etag,omitempty"`// StateMetadata: State properties to include with this state. Overwrites any// existing `state_metadata`. Keys must match the regex `/^a-z0-9{0,62}$/`.// Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`.StateMetadata map[string]string `json:"stateMetadata,omitempty"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest: Request forthe `MarkRecommendationFailed` Method.

func (GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest)MarshalJSON

typeGoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest

type GoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest struct {// Etag: Required. Fingerprint of the Recommendation. Provides optimistic// locking.Etagstring `json:"etag,omitempty"`// StateMetadata: State properties to include with this state. Overwrites any// existing `state_metadata`. Keys must match the regex `/^a-z0-9{0,62}$/`.// Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`.StateMetadata map[string]string `json:"stateMetadata,omitempty"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest: Request forthe `MarkRecommendationSucceeded` Method.

func (GoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest)MarshalJSON

typeGoogleCloudRecommenderV1beta1Operation

type GoogleCloudRecommenderV1beta1Operation struct {// Action: Type of this operation. Contains one of 'add', 'remove', 'replace',// 'move', 'copy', 'test' and 'custom' operations. This field is// case-insensitive and always populated.Actionstring `json:"action,omitempty"`// Path: Path to the target field being operated on. If the operation is at the// resource level, then path should be "/". This field is always populated.Pathstring `json:"path,omitempty"`// PathFilters: Set of filters to apply if `path` refers to array elements or// nested array elements in order to narrow down to a single unique element// that is being tested/modified. This is intended to be an exact match per// filter. To perform advanced matching, use path_value_matchers. * Example:// “` { "/versions/*/name" : "it-123" "/versions/*/targetSize/percent": 20 }// “` * Example: “` { "/bindings/*/role": "roles/owner"// "/bindings/*/condition" : null } “` * Example: “` { "/bindings/*/role":// "roles/owner" "/bindings/*/members/*" : ["x@example.com", "y@example.com"] }// “` When both path_filters and path_value_matchers are set, an implicit AND// must be performed.PathFiltersgoogleapi.RawMessage `json:"pathFilters,omitempty"`// PathValueMatchers: Similar to path_filters, this contains set of filters to// apply if `path` field refers to array elements. This is meant to support// value matching beyond exact match. To perform exact match, use path_filters.// When both path_filters and path_value_matchers are set, an implicit AND must// be performed.PathValueMatchers map[string]GoogleCloudRecommenderV1beta1ValueMatcher `json:"pathValueMatchers,omitempty"`// Resource: Contains the fully qualified resource name. This field is always// populated. ex: //cloudresourcemanager.googleapis.com/projects/foo.Resourcestring `json:"resource,omitempty"`// ResourceType: Type of GCP resource being modified/tested. This field is// always populated. Example: cloudresourcemanager.googleapis.com/Project,// compute.googleapis.com/InstanceResourceTypestring `json:"resourceType,omitempty"`// SourcePath: Can be set with action 'copy' or 'move' to indicate the source// field within resource or source_resource, ignored if provided for other// operation types.SourcePathstring `json:"sourcePath,omitempty"`// SourceResource: Can be set with action 'copy' to copy resource configuration// across different resources of the same type. Example: A resource clone can// be done via action = 'copy', path = "/", from = "/", source_resource = and// resource_name = . This field is empty for all other values of `action`.SourceResourcestring `json:"sourceResource,omitempty"`// Value: Value for the `path` field. Will be set for actions:'add'/'replace'.// Maybe set for action: 'test'. Either this or `value_matcher` will be set for// 'test' operation. An exact match must be performed.Value interface{} `json:"value,omitempty"`// ValueMatcher: Can be set for action 'test' for advanced matching for the// value of 'path' field. Either this or `value` will be set for 'test'// operation.ValueMatcher *GoogleCloudRecommenderV1beta1ValueMatcher `json:"valueMatcher,omitempty"`// ForceSendFields is a list of field names (e.g. "Action") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Action") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudRecommenderV1beta1Operation: Contains an operation for a resourceloosely based on the JSON-PATCH format with support for: * Custom filtersfor describing partial array patch. * Extended path values for describingnested arrays. * Custom fields for describing the resource for which theoperation is being described. * Allows extension to custom operations notnatively supported by RFC6902. Seehttps://tools.ietf.org/html/rfc6902 fordetails on the original RFC.

func (GoogleCloudRecommenderV1beta1Operation)MarshalJSON

typeGoogleCloudRecommenderV1beta1OperationGroup

type GoogleCloudRecommenderV1beta1OperationGroup struct {// Operations: List of operations across one or more resources that belong to// this group. Loosely based on RFC6902 and should be performed in the order// they appear.Operations []*GoogleCloudRecommenderV1beta1Operation `json:"operations,omitempty"`// ForceSendFields is a list of field names (e.g. "Operations") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Operations") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudRecommenderV1beta1OperationGroup: Group of operations that needto be performed atomically.

func (GoogleCloudRecommenderV1beta1OperationGroup)MarshalJSON

typeGoogleCloudRecommenderV1beta1Recommendation

type GoogleCloudRecommenderV1beta1Recommendation struct {// AdditionalImpact: Optional set of additional impact that this recommendation// may have when trying to optimize for the primary category. These may be// positive or negative.AdditionalImpact []*GoogleCloudRecommenderV1beta1Impact `json:"additionalImpact,omitempty"`// AssociatedInsights: Insights that led to this recommendation.AssociatedInsights []*GoogleCloudRecommenderV1beta1RecommendationInsightReference `json:"associatedInsights,omitempty"`// Content: Content of the recommendation describing recommended changes to// resources.Content *GoogleCloudRecommenderV1beta1RecommendationContent `json:"content,omitempty"`// Description: Free-form human readable summary in English. The maximum length// is 500 characters.Descriptionstring `json:"description,omitempty"`// Etag: Fingerprint of the Recommendation. Provides optimistic locking when// updating states.Etagstring `json:"etag,omitempty"`// LastRefreshTime: Last time this recommendation was refreshed by the system// that created it in the first place.LastRefreshTimestring `json:"lastRefreshTime,omitempty"`// Name: Identifier. Name of recommendation.Namestring `json:"name,omitempty"`// PrimaryImpact: The primary impact that this recommendation can have while// trying to optimize for one category.PrimaryImpact *GoogleCloudRecommenderV1beta1Impact `json:"primaryImpact,omitempty"`// Priority: Recommendation's priority.//// Possible values://   "PRIORITY_UNSPECIFIED" - Recommendation has unspecified priority.//   "P4" - Recommendation has P4 priority (lowest priority).//   "P3" - Recommendation has P3 priority (second lowest priority).//   "P2" - Recommendation has P2 priority (second highest priority).//   "P1" - Recommendation has P1 priority (highest priority).Prioritystring `json:"priority,omitempty"`// RecommenderSubtype: Contains an identifier for a subtype of recommendations// produced for the same recommender. Subtype is a function of content and// impact, meaning a new subtype might be added when significant changes to// `content` or `primary_impact.category` are introduced. See the Recommenders// section to see a list of subtypes for a given Recommender. Examples: For// recommender = "google.iam.policy.Recommender", recommender_subtype can be// one of "REMOVE_ROLE"/"REPLACE_ROLE"RecommenderSubtypestring `json:"recommenderSubtype,omitempty"`// StateInfo: Information for state. Contains state and metadata.StateInfo *GoogleCloudRecommenderV1beta1RecommendationStateInfo `json:"stateInfo,omitempty"`// TargetResources: Fully qualified resource names that this recommendation is// targeting.TargetResources []string `json:"targetResources,omitempty"`// XorGroupId: Corresponds to a mutually exclusive group ID within a// recommender. A non-empty ID indicates that the recommendation belongs to a// mutually exclusive group. This means that only one recommendation within the// group is suggested to be applied.XorGroupIdstring `json:"xorGroupId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AdditionalImpact") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdditionalImpact") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudRecommenderV1beta1Recommendation: A recommendation along with asuggested action. E.g., a rightsizing recommendation for an underutilizedVM, IAM role recommendations, etc

func (GoogleCloudRecommenderV1beta1Recommendation)MarshalJSON

typeGoogleCloudRecommenderV1beta1RecommendationContent

type GoogleCloudRecommenderV1beta1RecommendationContent struct {// OperationGroups: Operations to one or more Google Cloud resources grouped in// such a way that, all operations within one group are expected to be// performed atomically and in an order.OperationGroups []*GoogleCloudRecommenderV1beta1OperationGroup `json:"operationGroups,omitempty"`// Overview: Condensed overview information about the recommendation.Overviewgoogleapi.RawMessage `json:"overview,omitempty"`// ForceSendFields is a list of field names (e.g. "OperationGroups") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "OperationGroups") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudRecommenderV1beta1RecommendationContent: Contains what resourcesare changing and how they are changing.

func (GoogleCloudRecommenderV1beta1RecommendationContent)MarshalJSON

typeGoogleCloudRecommenderV1beta1RecommendationInsightReferenceadded inv0.21.0

type GoogleCloudRecommenderV1beta1RecommendationInsightReference struct {// Insight: Insight resource name, e.g.// projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]// /insights/[INSIGHT_ID]Insightstring `json:"insight,omitempty"`// ForceSendFields is a list of field names (e.g. "Insight") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Insight") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudRecommenderV1beta1RecommendationInsightReference: Reference to anassociated insight.

func (GoogleCloudRecommenderV1beta1RecommendationInsightReference)MarshalJSONadded inv0.21.0

typeGoogleCloudRecommenderV1beta1RecommendationStateInfo

type GoogleCloudRecommenderV1beta1RecommendationStateInfo struct {// State: The state of the recommendation, Eg ACTIVE, SUCCEEDED, FAILED.//// Possible values://   "STATE_UNSPECIFIED" - Default state. Don't use directly.//   "ACTIVE" - Recommendation is active and can be applied. Recommendations// content can be updated by Google. ACTIVE recommendations can be marked as// CLAIMED, SUCCEEDED, or FAILED.//   "CLAIMED" - Recommendation is in claimed state. Recommendations content is// immutable and cannot be updated by Google. CLAIMED recommendations can be// marked as CLAIMED, SUCCEEDED, or FAILED.//   "SUCCEEDED" - Recommendation is in succeeded state. Recommendations// content is immutable and cannot be updated by Google. SUCCEEDED// recommendations can be marked as SUCCEEDED, or FAILED.//   "FAILED" - Recommendation is in failed state. Recommendations content is// immutable and cannot be updated by Google. FAILED recommendations can be// marked as SUCCEEDED, or FAILED.//   "DISMISSED" - Recommendation is in dismissed state. Recommendation content// can be updated by Google. DISMISSED recommendations can be marked as ACTIVE.Statestring `json:"state,omitempty"`// StateMetadata: A map of metadata for the state, provided by user or// automations systems.StateMetadata map[string]string `json:"stateMetadata,omitempty"`// ForceSendFields is a list of field names (e.g. "State") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "State") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudRecommenderV1beta1RecommendationStateInfo: Information for state.Contains state and metadata.

func (GoogleCloudRecommenderV1beta1RecommendationStateInfo)MarshalJSON

typeGoogleCloudRecommenderV1beta1RecommenderConfigadded inv0.61.0

type GoogleCloudRecommenderV1beta1RecommenderConfig struct {// Annotations: Allows clients to store small amounts of arbitrary data.// Annotations must follow the Kubernetes syntax. The total size of all keys// and values combined is limited to 256k. Key can have 2 segments: prefix// (optional) and name (required), separated by a slash (/). Prefix must be a// DNS subdomain. Name must be 63 characters or less, begin and end with// alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics// between.Annotations map[string]string `json:"annotations,omitempty"`// DisplayName: A user-settable field to provide a human-readable name to be// used in user interfaces.DisplayNamestring `json:"displayName,omitempty"`// Etag: Fingerprint of the RecommenderConfig. Provides optimistic locking when// updating.Etagstring `json:"etag,omitempty"`// Name: Identifier. Name of recommender config. Eg,// projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/// configNamestring `json:"name,omitempty"`// RecommenderGenerationConfig: RecommenderGenerationConfig which configures// the Generation of recommendations for this recommender.RecommenderGenerationConfig *GoogleCloudRecommenderV1beta1RecommenderGenerationConfig `json:"recommenderGenerationConfig,omitempty"`// RevisionId: Output only. Immutable. The revision ID of the config. A new// revision is committed whenever the config is changed in any way. The format// is an 8-character hexadecimal string.RevisionIdstring `json:"revisionId,omitempty"`// UpdateTime: Last time when the config was updated.UpdateTimestring `json:"updateTime,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Annotations") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Annotations") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudRecommenderV1beta1RecommenderConfig: Configuration for aRecommender.

func (GoogleCloudRecommenderV1beta1RecommenderConfig)MarshalJSONadded inv0.61.0

typeGoogleCloudRecommenderV1beta1RecommenderGenerationConfigadded inv0.61.0

type GoogleCloudRecommenderV1beta1RecommenderGenerationConfig struct {// Params: Parameters for this RecommenderGenerationConfig. These configs can// be used by or are applied to all subtypes.Paramsgoogleapi.RawMessage `json:"params,omitempty"`// ForceSendFields is a list of field names (e.g. "Params") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Params") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudRecommenderV1beta1RecommenderGenerationConfig: A Configuration tocustomize the generation of recommendations. Eg, customizing the lookbackperiod considered when generating a recommendation.

func (GoogleCloudRecommenderV1beta1RecommenderGenerationConfig)MarshalJSONadded inv0.61.0

typeGoogleCloudRecommenderV1beta1RecommenderTypeadded inv0.128.0

type GoogleCloudRecommenderV1beta1RecommenderType struct {// Name: The recommender's name in format RecommenderTypes/{recommender_type}// eg: recommenderTypes/google.iam.policy.RecommenderNamestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Name") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudRecommenderV1beta1RecommenderType: The type of a recommender.

func (GoogleCloudRecommenderV1beta1RecommenderType)MarshalJSONadded inv0.128.0

typeGoogleCloudRecommenderV1beta1ReliabilityProjectionadded inv0.99.0

type GoogleCloudRecommenderV1beta1ReliabilityProjection struct {// Details: Per-recommender projection.Detailsgoogleapi.RawMessage `json:"details,omitempty"`// Risks: Reliability risks mitigated by this recommendation.//// Possible values://   "RISK_TYPE_UNSPECIFIED" - Default unspecified risk. Don't use directly.//   "SERVICE_DISRUPTION" - Potential service downtime.//   "DATA_LOSS" - Potential data loss.//   "ACCESS_DENY" - Potential access denial. The service is still up but some// or all clients can't access it.Risks []string `json:"risks,omitempty"`// ForceSendFields is a list of field names (e.g. "Details") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Details") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudRecommenderV1beta1ReliabilityProjection: Contains information onthe impact of a reliability recommendation.

func (GoogleCloudRecommenderV1beta1ReliabilityProjection)MarshalJSONadded inv0.99.0

typeGoogleCloudRecommenderV1beta1SecurityProjectionadded inv0.47.0

type GoogleCloudRecommenderV1beta1SecurityProjection struct {// Details: This field can be used by the recommender to define details// specific to security impact.Detailsgoogleapi.RawMessage `json:"details,omitempty"`// ForceSendFields is a list of field names (e.g. "Details") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Details") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudRecommenderV1beta1SecurityProjection: Contains various ways ofdescribing the impact on Security.

func (GoogleCloudRecommenderV1beta1SecurityProjection)MarshalJSONadded inv0.47.0

typeGoogleCloudRecommenderV1beta1SustainabilityProjectionadded inv0.69.0

type GoogleCloudRecommenderV1beta1SustainabilityProjection struct {// Duration: Duration for which this sustanability applies.Durationstring `json:"duration,omitempty"`// KgCO2e: Carbon Footprint generated in kg of CO2 equivalent. Chose kg_c_o2e// so that the name renders correctly in camelCase (kgCO2e).KgCO2efloat64 `json:"kgCO2e,omitempty"`// ForceSendFields is a list of field names (e.g. "Duration") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Duration") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudRecommenderV1beta1SustainabilityProjection: Contains metadataabout how much sustainability a recommendation can save or incur.

func (GoogleCloudRecommenderV1beta1SustainabilityProjection)MarshalJSONadded inv0.69.0

func (*GoogleCloudRecommenderV1beta1SustainabilityProjection)UnmarshalJSONadded inv0.69.0

typeGoogleCloudRecommenderV1beta1ValueMatcher

type GoogleCloudRecommenderV1beta1ValueMatcher struct {// MatchesPattern: To be used for full regex matching. The regular expression// is using the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax),// so to be used with RE2::FullMatchMatchesPatternstring `json:"matchesPattern,omitempty"`// ForceSendFields is a list of field names (e.g. "MatchesPattern") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "MatchesPattern") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudRecommenderV1beta1ValueMatcher: Contains various matching optionsfor values for a GCP resource field.

func (GoogleCloudRecommenderV1beta1ValueMatcher)MarshalJSON

typeGoogleTypeMoney

type GoogleTypeMoney struct {// CurrencyCode: The three-letter currency code defined in ISO 4217.CurrencyCodestring `json:"currencyCode,omitempty"`// Nanos: Number of nano (10^-9) units of the amount. The value must be between// -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos`// must be positive or zero. If `units` is zero, `nanos` can be positive, zero,// or negative. If `units` is negative, `nanos` must be negative or zero. For// example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.Nanosint64 `json:"nanos,omitempty"`// Units: The whole units of the amount. For example if `currencyCode` is// "USD", then 1 unit is one US dollar.Unitsint64 `json:"units,omitempty,string"`// ForceSendFields is a list of field names (e.g. "CurrencyCode") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CurrencyCode") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleTypeMoney: Represents an amount of money with its currency type.

func (GoogleTypeMoney)MarshalJSON

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

typeInsightTypesListCalladded inv0.128.0

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

func (*InsightTypesListCall)Contextadded inv0.128.0

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

func (*InsightTypesListCall)Doadded inv0.128.0

Do executes the "recommender.insightTypes.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1ListInsightTypesResponse.ServerResponse.Headeror (if a response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*InsightTypesListCall)Fieldsadded inv0.128.0

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

func (*InsightTypesListCall)Headeradded inv0.128.0

func (c *InsightTypesListCall) Header()http.Header

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

func (*InsightTypesListCall)IfNoneMatchadded inv0.128.0

func (c *InsightTypesListCall) IfNoneMatch(entityTagstring) *InsightTypesListCall

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

func (*InsightTypesListCall)PageSizeadded inv0.128.0

func (c *InsightTypesListCall) PageSize(pageSizeint64) *InsightTypesListCall

PageSize sets the optional parameter "pageSize": The number of InsightTypesto return per page. The service may return fewer than this value.

func (*InsightTypesListCall)PageTokenadded inv0.128.0

func (c *InsightTypesListCall) PageToken(pageTokenstring) *InsightTypesListCall

PageToken sets the optional parameter "pageToken": A page token, receivedfrom a previous `ListRecommenders` call. Provide this to retrieve thesubsequent page.

func (*InsightTypesListCall)Pagesadded inv0.128.0

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typeInsightTypesServiceadded inv0.128.0

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

funcNewInsightTypesServiceadded inv0.128.0

func NewInsightTypesService(s *Service) *InsightTypesService

func (*InsightTypesService)Listadded inv0.128.0

List: Lists available InsightTypes. No IAM permissions are required.

typeOrganizationsLocationsInsightTypesGetConfigCalladded inv0.61.0

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

func (*OrganizationsLocationsInsightTypesGetConfigCall)Contextadded inv0.61.0

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

func (*OrganizationsLocationsInsightTypesGetConfigCall)Doadded inv0.61.0

Do executes the "recommender.organizations.locations.insightTypes.getConfig" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1InsightTypeConfig.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*OrganizationsLocationsInsightTypesGetConfigCall)Fieldsadded inv0.61.0

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

func (*OrganizationsLocationsInsightTypesGetConfigCall)Headeradded inv0.61.0

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

func (*OrganizationsLocationsInsightTypesGetConfigCall)IfNoneMatchadded inv0.61.0

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

typeOrganizationsLocationsInsightTypesInsightsGetCalladded inv0.37.0

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

func (*OrganizationsLocationsInsightTypesInsightsGetCall)Contextadded inv0.37.0

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

func (*OrganizationsLocationsInsightTypesInsightsGetCall)Doadded inv0.37.0

Do executes the "recommender.organizations.locations.insightTypes.insights.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Insight.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*OrganizationsLocationsInsightTypesInsightsGetCall)Fieldsadded inv0.37.0

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

func (*OrganizationsLocationsInsightTypesInsightsGetCall)Headeradded inv0.37.0

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

func (*OrganizationsLocationsInsightTypesInsightsGetCall)IfNoneMatchadded inv0.37.0

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

typeOrganizationsLocationsInsightTypesInsightsListCalladded inv0.37.0

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

func (*OrganizationsLocationsInsightTypesInsightsListCall)Contextadded inv0.37.0

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

func (*OrganizationsLocationsInsightTypesInsightsListCall)Doadded inv0.37.0

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

func (*OrganizationsLocationsInsightTypesInsightsListCall)Fieldsadded inv0.37.0

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

func (*OrganizationsLocationsInsightTypesInsightsListCall)Filteradded inv0.37.0

Filter sets the optional parameter "filter": Filter expression to restrictthe insights returned. Supported filter fields: * `stateInfo.state` *`insightSubtype` * `severity` * `targetResources` Examples: *`stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `insightSubtype= PERMISSIONS_USAGE` * `severity = CRITICAL OR severity = HIGH` *`targetResources ://compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity =HIGH)` The max allowed filter length is 500 characters. (These expressionsare based on the filter language described athttps://google.aip.dev/160)

func (*OrganizationsLocationsInsightTypesInsightsListCall)Headeradded inv0.37.0

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

func (*OrganizationsLocationsInsightTypesInsightsListCall)IfNoneMatchadded inv0.37.0

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

func (*OrganizationsLocationsInsightTypesInsightsListCall)PageSizeadded inv0.37.0

PageSize sets the optional parameter "pageSize": The maximum number ofresults to return from this request. Non-positive values are ignored. If notspecified, the server will determine the number of results to return.

func (*OrganizationsLocationsInsightTypesInsightsListCall)PageTokenadded inv0.37.0

PageToken sets the optional parameter "pageToken": If present, retrieves thenext batch of results from the preceding call to this method. `page_token`must be the value of `next_page_token` from the previous response. Thevalues of other method parameters must be identical to those in the previouscall.

func (*OrganizationsLocationsInsightTypesInsightsListCall)Pagesadded inv0.37.0

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typeOrganizationsLocationsInsightTypesInsightsMarkAcceptedCalladded inv0.37.0

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

func (*OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall)Contextadded inv0.37.0

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

func (*OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall)Doadded inv0.37.0

Do executes the "recommender.organizations.locations.insightTypes.insights.markAccepted" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Insight.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall)Fieldsadded inv0.37.0

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

func (*OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall)Headeradded inv0.37.0

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

typeOrganizationsLocationsInsightTypesInsightsServiceadded inv0.37.0

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

funcNewOrganizationsLocationsInsightTypesInsightsServiceadded inv0.37.0

func NewOrganizationsLocationsInsightTypesInsightsService(s *Service) *OrganizationsLocationsInsightTypesInsightsService

func (*OrganizationsLocationsInsightTypesInsightsService)Getadded inv0.37.0

Get: Gets the requested insight. Requires the recommender.*.get IAMpermission for the specified insight type.

- name: Name of the insight.

func (*OrganizationsLocationsInsightTypesInsightsService)Listadded inv0.37.0

List: Lists insights for the specified Cloud Resource. Requires therecommender.*.list IAM permission for the specified insight type.

  • parent: The container resource on which to execute the request. Acceptableformats: *`projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` *`projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`*`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` *`folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`*`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` LOCATION here refers to GCP Locations:https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers tosupported insight types:https://cloud.google.com/recommender/docs/insights/insight-types.

func (*OrganizationsLocationsInsightTypesInsightsService)MarkAcceptedadded inv0.37.0

MarkAccepted: Marks the Insight State as Accepted. Users can use this methodto indicate to the Recommender API that they have applied some action basedon the insight. This stops the insight content from being updated.MarkInsightAccepted can be applied to insights in ACTIVE state. Requires therecommender.*.update IAM permission for the specified insight.

- name: Name of the insight.

typeOrganizationsLocationsInsightTypesServiceadded inv0.37.0

type OrganizationsLocationsInsightTypesService struct {Insights *OrganizationsLocationsInsightTypesInsightsService// contains filtered or unexported fields}

funcNewOrganizationsLocationsInsightTypesServiceadded inv0.37.0

func NewOrganizationsLocationsInsightTypesService(s *Service) *OrganizationsLocationsInsightTypesService

func (*OrganizationsLocationsInsightTypesService)GetConfigadded inv0.61.0

GetConfig: Gets the requested InsightTypeConfig. There is only one instanceof the config for each InsightType.

  • name: Name of the InsightTypeConfig to get. Acceptable formats: *`projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` *`projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` *`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` *`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config`.

func (*OrganizationsLocationsInsightTypesService)UpdateConfigadded inv0.72.0

UpdateConfig: Updates an InsightTypeConfig change. This will create a newrevision of the config.

  • name: Identifier. Name of insight type config. Eg,projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config.

typeOrganizationsLocationsInsightTypesUpdateConfigCalladded inv0.72.0

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

func (*OrganizationsLocationsInsightTypesUpdateConfigCall)Contextadded inv0.72.0

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

func (*OrganizationsLocationsInsightTypesUpdateConfigCall)Doadded inv0.72.0

Do executes the "recommender.organizations.locations.insightTypes.updateConfig" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1InsightTypeConfig.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*OrganizationsLocationsInsightTypesUpdateConfigCall)Fieldsadded inv0.72.0

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

func (*OrganizationsLocationsInsightTypesUpdateConfigCall)Headeradded inv0.72.0

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

func (*OrganizationsLocationsInsightTypesUpdateConfigCall)UpdateMaskadded inv0.72.0

UpdateMask sets the optional parameter "updateMask": The list of fields tobe updated.

func (*OrganizationsLocationsInsightTypesUpdateConfigCall)ValidateOnlyadded inv0.72.0

ValidateOnly sets the optional parameter "validateOnly": If true, validatethe request and preview the change, but do not actually update it.

typeOrganizationsLocationsListCalladded inv0.156.0

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

func (*OrganizationsLocationsListCall)Contextadded inv0.156.0

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

func (*OrganizationsLocationsListCall)Doadded inv0.156.0

Do executes the "recommender.organizations.locations.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudLocationListLocationsResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*OrganizationsLocationsListCall)ExtraLocationTypesadded inv0.229.0

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

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

func (*OrganizationsLocationsListCall)Fieldsadded inv0.156.0

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

func (*OrganizationsLocationsListCall)Filteradded inv0.156.0

Filter sets the optional parameter "filter": A filter to narrow down resultsto a preferred subset. The filtering language accepts strings like"displayName=tokyo", and is documented in more detail in AIP-160(https://google.aip.dev/160).

func (*OrganizationsLocationsListCall)Headeradded inv0.156.0

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

func (*OrganizationsLocationsListCall)IfNoneMatchadded inv0.156.0

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

func (*OrganizationsLocationsListCall)PageSizeadded inv0.156.0

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

func (*OrganizationsLocationsListCall)PageTokenadded inv0.156.0

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

func (*OrganizationsLocationsListCall)Pagesadded inv0.156.0

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typeOrganizationsLocationsRecommendersGetConfigCalladded inv0.61.0

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

func (*OrganizationsLocationsRecommendersGetConfigCall)Contextadded inv0.61.0

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

func (*OrganizationsLocationsRecommendersGetConfigCall)Doadded inv0.61.0

Do executes the "recommender.organizations.locations.recommenders.getConfig" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1RecommenderConfig.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*OrganizationsLocationsRecommendersGetConfigCall)Fieldsadded inv0.61.0

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

func (*OrganizationsLocationsRecommendersGetConfigCall)Headeradded inv0.61.0

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

func (*OrganizationsLocationsRecommendersGetConfigCall)IfNoneMatchadded inv0.61.0

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

typeOrganizationsLocationsRecommendersRecommendationsGetCalladded inv0.37.0

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

func (*OrganizationsLocationsRecommendersRecommendationsGetCall)Contextadded inv0.37.0

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

func (*OrganizationsLocationsRecommendersRecommendationsGetCall)Doadded inv0.37.0

Do executes the "recommender.organizations.locations.recommenders.recommendations.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*OrganizationsLocationsRecommendersRecommendationsGetCall)Fieldsadded inv0.37.0

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

func (*OrganizationsLocationsRecommendersRecommendationsGetCall)Headeradded inv0.37.0

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

func (*OrganizationsLocationsRecommendersRecommendationsGetCall)IfNoneMatchadded inv0.37.0

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

typeOrganizationsLocationsRecommendersRecommendationsListCalladded inv0.37.0

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

func (*OrganizationsLocationsRecommendersRecommendationsListCall)Contextadded inv0.37.0

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

func (*OrganizationsLocationsRecommendersRecommendationsListCall)Doadded inv0.37.0

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

func (*OrganizationsLocationsRecommendersRecommendationsListCall)Fieldsadded inv0.37.0

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

func (*OrganizationsLocationsRecommendersRecommendationsListCall)Filteradded inv0.37.0

Filter sets the optional parameter "filter": Filter expression to restrictthe recommendations returned. Supported filter fields: * `state_info.state`* `recommenderSubtype` * `priority` * `targetResources` Examples: *`stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` *`recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` *`priority = P1 OR priority = P2` * `targetResources ://compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)` Themax allowed filter length is 500 characters. (These expressions are based onthe filter language described athttps://google.aip.dev/160)

func (*OrganizationsLocationsRecommendersRecommendationsListCall)Headeradded inv0.37.0

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

func (*OrganizationsLocationsRecommendersRecommendationsListCall)IfNoneMatchadded inv0.37.0

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

func (*OrganizationsLocationsRecommendersRecommendationsListCall)PageSizeadded inv0.37.0

PageSize sets the optional parameter "pageSize": The maximum number ofresults to return from this request. Non-positive values are ignored. If notspecified, the server will determine the number of results to return.

func (*OrganizationsLocationsRecommendersRecommendationsListCall)PageTokenadded inv0.37.0

PageToken sets the optional parameter "pageToken": If present, retrieves thenext batch of results from the preceding call to this method. `page_token`must be the value of `next_page_token` from the previous response. Thevalues of other method parameters must be identical to those in the previouscall.

func (*OrganizationsLocationsRecommendersRecommendationsListCall)Pagesadded inv0.37.0

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typeOrganizationsLocationsRecommendersRecommendationsMarkClaimedCalladded inv0.37.0

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

func (*OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall)Contextadded inv0.37.0

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

func (*OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall)Doadded inv0.37.0

Do executes the "recommender.organizations.locations.recommenders.recommendations.markClaimed" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall)Fieldsadded inv0.37.0

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

func (*OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall)Headeradded inv0.37.0

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

typeOrganizationsLocationsRecommendersRecommendationsMarkDismissedCalladded inv0.107.0

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

func (*OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall)Contextadded inv0.107.0

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

func (*OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall)Doadded inv0.107.0

Do executes the "recommender.organizations.locations.recommenders.recommendations.markDismissed" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall)Fieldsadded inv0.107.0

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

func (*OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall)Headeradded inv0.107.0

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

typeOrganizationsLocationsRecommendersRecommendationsMarkFailedCalladded inv0.37.0

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

func (*OrganizationsLocationsRecommendersRecommendationsMarkFailedCall)Contextadded inv0.37.0

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

func (*OrganizationsLocationsRecommendersRecommendationsMarkFailedCall)Doadded inv0.37.0

Do executes the "recommender.organizations.locations.recommenders.recommendations.markFailed" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*OrganizationsLocationsRecommendersRecommendationsMarkFailedCall)Fieldsadded inv0.37.0

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

func (*OrganizationsLocationsRecommendersRecommendationsMarkFailedCall)Headeradded inv0.37.0

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

typeOrganizationsLocationsRecommendersRecommendationsMarkSucceededCalladded inv0.37.0

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

func (*OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall)Contextadded inv0.37.0

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

func (*OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall)Doadded inv0.37.0

Do executes the "recommender.organizations.locations.recommenders.recommendations.markSucceeded" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall)Fieldsadded inv0.37.0

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

func (*OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall)Headeradded inv0.37.0

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

typeOrganizationsLocationsRecommendersRecommendationsServiceadded inv0.37.0

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

funcNewOrganizationsLocationsRecommendersRecommendationsServiceadded inv0.37.0

func NewOrganizationsLocationsRecommendersRecommendationsService(s *Service) *OrganizationsLocationsRecommendersRecommendationsService

func (*OrganizationsLocationsRecommendersRecommendationsService)Getadded inv0.37.0

Get: Gets the requested recommendation. Requires the recommender.*.get IAMpermission for the specified recommender.

- name: Name of the recommendation.

func (*OrganizationsLocationsRecommendersRecommendationsService)Listadded inv0.37.0

List: Lists recommendations for the specified Cloud Resource. Requires therecommender.*.list IAM permission for the specified recommender.

  • parent: The container resource on which to execute the request. Acceptableformats: *`projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *`projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]`*`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *`folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` LOCATION here refers to GCP Locations:https://cloud.google.com/about/locations/ RECOMMENDER_ID refers tosupported recommenders:https://cloud.google.com/recommender/docs/recommenders.

func (*OrganizationsLocationsRecommendersRecommendationsService)MarkClaimedadded inv0.37.0

MarkClaimed: Marks the Recommendation State as Claimed. Users can use thismethod to indicate to the Recommender API that they are starting to applythe recommendation themselves. This stops the recommendation content frombeing updated. Associated insights are frozen and placed in the ACCEPTEDstate. MarkRecommendationClaimed can be applied to recommendations inCLAIMED or ACTIVE state. Requires the recommender.*.update IAM permissionfor the specified recommender.

- name: Name of the recommendation.

func (*OrganizationsLocationsRecommendersRecommendationsService)MarkDismissedadded inv0.107.0

MarkDismissed: Mark the Recommendation State as Dismissed. Users can usethis method to indicate to the Recommender API that an ACTIVE recommendationhas to be marked back as DISMISSED. MarkRecommendationDismissed can beapplied to recommendations in ACTIVE state. Requires therecommender.*.update IAM permission for the specified recommender.

- name: Name of the recommendation.

func (*OrganizationsLocationsRecommendersRecommendationsService)MarkFailedadded inv0.37.0

MarkFailed: Marks the Recommendation State as Failed. Users can use thismethod to indicate to the Recommender API that they have applied therecommendation themselves, and the operation failed. This stops therecommendation content from being updated. Associated insights are frozenand placed in the ACCEPTED state. MarkRecommendationFailed can be applied torecommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires therecommender.*.update IAM permission for the specified recommender.

- name: Name of the recommendation.

func (*OrganizationsLocationsRecommendersRecommendationsService)MarkSucceededadded inv0.37.0

MarkSucceeded: Marks the Recommendation State as Succeeded. Users can usethis method to indicate to the Recommender API that they have applied therecommendation themselves, and the operation was successful. This stops therecommendation content from being updated. Associated insights are frozenand placed in the ACCEPTED state. MarkRecommendationSucceeded can be appliedto recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requiresthe recommender.*.update IAM permission for the specified recommender.

- name: Name of the recommendation.

typeOrganizationsLocationsRecommendersServiceadded inv0.37.0

type OrganizationsLocationsRecommendersService struct {Recommendations *OrganizationsLocationsRecommendersRecommendationsService// contains filtered or unexported fields}

funcNewOrganizationsLocationsRecommendersServiceadded inv0.37.0

func NewOrganizationsLocationsRecommendersService(s *Service) *OrganizationsLocationsRecommendersService

func (*OrganizationsLocationsRecommendersService)GetConfigadded inv0.61.0

GetConfig: Gets the requested Recommender Config. There is only one instanceof the config for each Recommender.

  • name: Name of the Recommendation Config to get. Acceptable formats: *`projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` *`projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` *`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` *`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config`.

func (*OrganizationsLocationsRecommendersService)UpdateConfigadded inv0.72.0

UpdateConfig: Updates a Recommender Config. This will create a new revisionof the config.

  • name: Identifier. Name of recommender config. Eg,projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config.

typeOrganizationsLocationsRecommendersUpdateConfigCalladded inv0.72.0

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

func (*OrganizationsLocationsRecommendersUpdateConfigCall)Contextadded inv0.72.0

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

func (*OrganizationsLocationsRecommendersUpdateConfigCall)Doadded inv0.72.0

Do executes the "recommender.organizations.locations.recommenders.updateConfig" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1RecommenderConfig.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*OrganizationsLocationsRecommendersUpdateConfigCall)Fieldsadded inv0.72.0

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

func (*OrganizationsLocationsRecommendersUpdateConfigCall)Headeradded inv0.72.0

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

func (*OrganizationsLocationsRecommendersUpdateConfigCall)UpdateMaskadded inv0.72.0

UpdateMask sets the optional parameter "updateMask": The list of fields tobe updated.

func (*OrganizationsLocationsRecommendersUpdateConfigCall)ValidateOnlyadded inv0.72.0

ValidateOnly sets the optional parameter "validateOnly": If true, validatethe request and preview the change, but do not actually update it.

typeOrganizationsLocationsServiceadded inv0.37.0

type OrganizationsLocationsService struct {InsightTypes *OrganizationsLocationsInsightTypesServiceRecommenders *OrganizationsLocationsRecommendersService// contains filtered or unexported fields}

funcNewOrganizationsLocationsServiceadded inv0.37.0

func NewOrganizationsLocationsService(s *Service) *OrganizationsLocationsService

func (*OrganizationsLocationsService)Listadded inv0.156.0

List: Lists locations with recommendations or insights.

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

typeOrganizationsServiceadded inv0.37.0

type OrganizationsService struct {Locations *OrganizationsLocationsService// contains filtered or unexported fields}

funcNewOrganizationsServiceadded inv0.37.0

func NewOrganizationsService(s *Service) *OrganizationsService

typeProjectsLocationsInsightTypesGetConfigCalladded inv0.61.0

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

func (*ProjectsLocationsInsightTypesGetConfigCall)Contextadded inv0.61.0

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

func (*ProjectsLocationsInsightTypesGetConfigCall)Doadded inv0.61.0

Do executes the "recommender.projects.locations.insightTypes.getConfig" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1InsightTypeConfig.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsInsightTypesGetConfigCall)Fieldsadded inv0.61.0

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

func (*ProjectsLocationsInsightTypesGetConfigCall)Headeradded inv0.61.0

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

func (*ProjectsLocationsInsightTypesGetConfigCall)IfNoneMatchadded inv0.61.0

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

typeProjectsLocationsInsightTypesInsightsGetCalladded inv0.21.0

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

func (*ProjectsLocationsInsightTypesInsightsGetCall)Contextadded inv0.21.0

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

func (*ProjectsLocationsInsightTypesInsightsGetCall)Doadded inv0.21.0

Do executes the "recommender.projects.locations.insightTypes.insights.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Insight.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsInsightTypesInsightsGetCall)Fieldsadded inv0.21.0

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

func (*ProjectsLocationsInsightTypesInsightsGetCall)Headeradded inv0.21.0

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

func (*ProjectsLocationsInsightTypesInsightsGetCall)IfNoneMatchadded inv0.21.0

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

typeProjectsLocationsInsightTypesInsightsListCalladded inv0.21.0

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

func (*ProjectsLocationsInsightTypesInsightsListCall)Contextadded inv0.21.0

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

func (*ProjectsLocationsInsightTypesInsightsListCall)Doadded inv0.21.0

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

func (*ProjectsLocationsInsightTypesInsightsListCall)Fieldsadded inv0.21.0

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

func (*ProjectsLocationsInsightTypesInsightsListCall)Filteradded inv0.21.0

Filter sets the optional parameter "filter": Filter expression to restrictthe insights returned. Supported filter fields: * `stateInfo.state` *`insightSubtype` * `severity` * `targetResources` Examples: *`stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `insightSubtype= PERMISSIONS_USAGE` * `severity = CRITICAL OR severity = HIGH` *`targetResources ://compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity =HIGH)` The max allowed filter length is 500 characters. (These expressionsare based on the filter language described athttps://google.aip.dev/160)

func (*ProjectsLocationsInsightTypesInsightsListCall)Headeradded inv0.21.0

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

func (*ProjectsLocationsInsightTypesInsightsListCall)IfNoneMatchadded inv0.21.0

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

func (*ProjectsLocationsInsightTypesInsightsListCall)PageSizeadded inv0.21.0

PageSize sets the optional parameter "pageSize": The maximum number ofresults to return from this request. Non-positive values are ignored. If notspecified, the server will determine the number of results to return.

func (*ProjectsLocationsInsightTypesInsightsListCall)PageTokenadded inv0.21.0

PageToken sets the optional parameter "pageToken": If present, retrieves thenext batch of results from the preceding call to this method. `page_token`must be the value of `next_page_token` from the previous response. Thevalues of other method parameters must be identical to those in the previouscall.

func (*ProjectsLocationsInsightTypesInsightsListCall)Pagesadded inv0.21.0

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typeProjectsLocationsInsightTypesInsightsMarkAcceptedCalladded inv0.21.0

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

func (*ProjectsLocationsInsightTypesInsightsMarkAcceptedCall)Contextadded inv0.21.0

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

func (*ProjectsLocationsInsightTypesInsightsMarkAcceptedCall)Doadded inv0.21.0

Do executes the "recommender.projects.locations.insightTypes.insights.markAccepted" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Insight.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsInsightTypesInsightsMarkAcceptedCall)Fieldsadded inv0.21.0

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

func (*ProjectsLocationsInsightTypesInsightsMarkAcceptedCall)Headeradded inv0.21.0

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

typeProjectsLocationsInsightTypesInsightsServiceadded inv0.21.0

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

funcNewProjectsLocationsInsightTypesInsightsServiceadded inv0.21.0

func NewProjectsLocationsInsightTypesInsightsService(s *Service) *ProjectsLocationsInsightTypesInsightsService

func (*ProjectsLocationsInsightTypesInsightsService)Getadded inv0.21.0

Get: Gets the requested insight. Requires the recommender.*.get IAMpermission for the specified insight type.

- name: Name of the insight.

func (*ProjectsLocationsInsightTypesInsightsService)Listadded inv0.21.0

List: Lists insights for the specified Cloud Resource. Requires therecommender.*.list IAM permission for the specified insight type.

  • parent: The container resource on which to execute the request. Acceptableformats: *`projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` *`projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`*`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` *`folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`*`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` LOCATION here refers to GCP Locations:https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers tosupported insight types:https://cloud.google.com/recommender/docs/insights/insight-types.

func (*ProjectsLocationsInsightTypesInsightsService)MarkAcceptedadded inv0.21.0

MarkAccepted: Marks the Insight State as Accepted. Users can use this methodto indicate to the Recommender API that they have applied some action basedon the insight. This stops the insight content from being updated.MarkInsightAccepted can be applied to insights in ACTIVE state. Requires therecommender.*.update IAM permission for the specified insight.

- name: Name of the insight.

typeProjectsLocationsInsightTypesServiceadded inv0.21.0

type ProjectsLocationsInsightTypesService struct {Insights *ProjectsLocationsInsightTypesInsightsService// contains filtered or unexported fields}

funcNewProjectsLocationsInsightTypesServiceadded inv0.21.0

func NewProjectsLocationsInsightTypesService(s *Service) *ProjectsLocationsInsightTypesService

func (*ProjectsLocationsInsightTypesService)GetConfigadded inv0.61.0

GetConfig: Gets the requested InsightTypeConfig. There is only one instanceof the config for each InsightType.

  • name: Name of the InsightTypeConfig to get. Acceptable formats: *`projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` *`projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` *`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` *`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config`.

func (*ProjectsLocationsInsightTypesService)UpdateConfigadded inv0.61.0

UpdateConfig: Updates an InsightTypeConfig change. This will create a newrevision of the config.

  • name: Identifier. Name of insight type config. Eg,projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config.

typeProjectsLocationsInsightTypesUpdateConfigCalladded inv0.61.0

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

func (*ProjectsLocationsInsightTypesUpdateConfigCall)Contextadded inv0.61.0

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

func (*ProjectsLocationsInsightTypesUpdateConfigCall)Doadded inv0.61.0

Do executes the "recommender.projects.locations.insightTypes.updateConfig" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1InsightTypeConfig.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsInsightTypesUpdateConfigCall)Fieldsadded inv0.61.0

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

func (*ProjectsLocationsInsightTypesUpdateConfigCall)Headeradded inv0.61.0

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

func (*ProjectsLocationsInsightTypesUpdateConfigCall)UpdateMaskadded inv0.61.0

UpdateMask sets the optional parameter "updateMask": The list of fields tobe updated.

func (*ProjectsLocationsInsightTypesUpdateConfigCall)ValidateOnlyadded inv0.61.0

ValidateOnly sets the optional parameter "validateOnly": If true, validatethe request and preview the change, but do not actually update it.

typeProjectsLocationsListCalladded inv0.156.0

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

func (*ProjectsLocationsListCall)Contextadded inv0.156.0

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

func (*ProjectsLocationsListCall)Doadded inv0.156.0

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

func (*ProjectsLocationsListCall)ExtraLocationTypesadded inv0.229.0

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

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

func (*ProjectsLocationsListCall)Fieldsadded inv0.156.0

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

func (*ProjectsLocationsListCall)Filteradded inv0.156.0

Filter sets the optional parameter "filter": A filter to narrow down resultsto a preferred subset. The filtering language accepts strings like"displayName=tokyo", and is documented in more detail in AIP-160(https://google.aip.dev/160).

func (*ProjectsLocationsListCall)Headeradded inv0.156.0

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

func (*ProjectsLocationsListCall)IfNoneMatchadded inv0.156.0

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

func (*ProjectsLocationsListCall)PageSizeadded inv0.156.0

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

func (*ProjectsLocationsListCall)PageTokenadded inv0.156.0

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

func (*ProjectsLocationsListCall)Pagesadded inv0.156.0

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typeProjectsLocationsRecommendersGetConfigCalladded inv0.61.0

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

func (*ProjectsLocationsRecommendersGetConfigCall)Contextadded inv0.61.0

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

func (*ProjectsLocationsRecommendersGetConfigCall)Doadded inv0.61.0

Do executes the "recommender.projects.locations.recommenders.getConfig" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1RecommenderConfig.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsRecommendersGetConfigCall)Fieldsadded inv0.61.0

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

func (*ProjectsLocationsRecommendersGetConfigCall)Headeradded inv0.61.0

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

func (*ProjectsLocationsRecommendersGetConfigCall)IfNoneMatchadded inv0.61.0

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

typeProjectsLocationsRecommendersRecommendationsGetCall

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

func (*ProjectsLocationsRecommendersRecommendationsGetCall)Context

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

func (*ProjectsLocationsRecommendersRecommendationsGetCall)Do

Do executes the "recommender.projects.locations.recommenders.recommendations.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsRecommendersRecommendationsGetCall)Fields

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

func (*ProjectsLocationsRecommendersRecommendationsGetCall)Header

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

func (*ProjectsLocationsRecommendersRecommendationsGetCall)IfNoneMatch

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

typeProjectsLocationsRecommendersRecommendationsListCall

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

func (*ProjectsLocationsRecommendersRecommendationsListCall)Context

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

func (*ProjectsLocationsRecommendersRecommendationsListCall)Do

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

func (*ProjectsLocationsRecommendersRecommendationsListCall)Fields

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

func (*ProjectsLocationsRecommendersRecommendationsListCall)Filter

Filter sets the optional parameter "filter": Filter expression to restrictthe recommendations returned. Supported filter fields: * `state_info.state`* `recommenderSubtype` * `priority` * `targetResources` Examples: *`stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` *`recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` *`priority = P1 OR priority = P2` * `targetResources ://compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)` Themax allowed filter length is 500 characters. (These expressions are based onthe filter language described athttps://google.aip.dev/160)

func (*ProjectsLocationsRecommendersRecommendationsListCall)Header

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

func (*ProjectsLocationsRecommendersRecommendationsListCall)IfNoneMatch

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

func (*ProjectsLocationsRecommendersRecommendationsListCall)PageSize

PageSize sets the optional parameter "pageSize": The maximum number ofresults to return from this request. Non-positive values are ignored. If notspecified, the server will determine the number of results to return.

func (*ProjectsLocationsRecommendersRecommendationsListCall)PageToken

PageToken sets the optional parameter "pageToken": If present, retrieves thenext batch of results from the preceding call to this method. `page_token`must be the value of `next_page_token` from the previous response. Thevalues of other method parameters must be identical to those in the previouscall.

func (*ProjectsLocationsRecommendersRecommendationsListCall)Pages

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typeProjectsLocationsRecommendersRecommendationsMarkClaimedCall

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

func (*ProjectsLocationsRecommendersRecommendationsMarkClaimedCall)Context

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

func (*ProjectsLocationsRecommendersRecommendationsMarkClaimedCall)Do

Do executes the "recommender.projects.locations.recommenders.recommendations.markClaimed" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsRecommendersRecommendationsMarkClaimedCall)Fields

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

func (*ProjectsLocationsRecommendersRecommendationsMarkClaimedCall)Header

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

typeProjectsLocationsRecommendersRecommendationsMarkDismissedCalladded inv0.107.0

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

func (*ProjectsLocationsRecommendersRecommendationsMarkDismissedCall)Contextadded inv0.107.0

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

func (*ProjectsLocationsRecommendersRecommendationsMarkDismissedCall)Doadded inv0.107.0

Do executes the "recommender.projects.locations.recommenders.recommendations.markDismissed" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsRecommendersRecommendationsMarkDismissedCall)Fieldsadded inv0.107.0

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

func (*ProjectsLocationsRecommendersRecommendationsMarkDismissedCall)Headeradded inv0.107.0

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

typeProjectsLocationsRecommendersRecommendationsMarkFailedCall

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

func (*ProjectsLocationsRecommendersRecommendationsMarkFailedCall)Context

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

func (*ProjectsLocationsRecommendersRecommendationsMarkFailedCall)Do

Do executes the "recommender.projects.locations.recommenders.recommendations.markFailed" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsRecommendersRecommendationsMarkFailedCall)Fields

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

func (*ProjectsLocationsRecommendersRecommendationsMarkFailedCall)Header

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

typeProjectsLocationsRecommendersRecommendationsMarkSucceededCall

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

func (*ProjectsLocationsRecommendersRecommendationsMarkSucceededCall)Context

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

func (*ProjectsLocationsRecommendersRecommendationsMarkSucceededCall)Do

Do executes the "recommender.projects.locations.recommenders.recommendations.markSucceeded" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsRecommendersRecommendationsMarkSucceededCall)Fields

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

func (*ProjectsLocationsRecommendersRecommendationsMarkSucceededCall)Header

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

typeProjectsLocationsRecommendersRecommendationsService

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

func (*ProjectsLocationsRecommendersRecommendationsService)Get

Get: Gets the requested recommendation. Requires the recommender.*.get IAMpermission for the specified recommender.

- name: Name of the recommendation.

func (*ProjectsLocationsRecommendersRecommendationsService)List

List: Lists recommendations for the specified Cloud Resource. Requires therecommender.*.list IAM permission for the specified recommender.

  • parent: The container resource on which to execute the request. Acceptableformats: *`projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *`projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]`*`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *`folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` LOCATION here refers to GCP Locations:https://cloud.google.com/about/locations/ RECOMMENDER_ID refers tosupported recommenders:https://cloud.google.com/recommender/docs/recommenders.

func (*ProjectsLocationsRecommendersRecommendationsService)MarkClaimed

MarkClaimed: Marks the Recommendation State as Claimed. Users can use thismethod to indicate to the Recommender API that they are starting to applythe recommendation themselves. This stops the recommendation content frombeing updated. Associated insights are frozen and placed in the ACCEPTEDstate. MarkRecommendationClaimed can be applied to recommendations inCLAIMED or ACTIVE state. Requires the recommender.*.update IAM permissionfor the specified recommender.

- name: Name of the recommendation.

func (*ProjectsLocationsRecommendersRecommendationsService)MarkDismissedadded inv0.107.0

MarkDismissed: Mark the Recommendation State as Dismissed. Users can usethis method to indicate to the Recommender API that an ACTIVE recommendationhas to be marked back as DISMISSED. MarkRecommendationDismissed can beapplied to recommendations in ACTIVE state. Requires therecommender.*.update IAM permission for the specified recommender.

- name: Name of the recommendation.

func (*ProjectsLocationsRecommendersRecommendationsService)MarkFailed

MarkFailed: Marks the Recommendation State as Failed. Users can use thismethod to indicate to the Recommender API that they have applied therecommendation themselves, and the operation failed. This stops therecommendation content from being updated. Associated insights are frozenand placed in the ACCEPTED state. MarkRecommendationFailed can be applied torecommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires therecommender.*.update IAM permission for the specified recommender.

- name: Name of the recommendation.

func (*ProjectsLocationsRecommendersRecommendationsService)MarkSucceeded

MarkSucceeded: Marks the Recommendation State as Succeeded. Users can usethis method to indicate to the Recommender API that they have applied therecommendation themselves, and the operation was successful. This stops therecommendation content from being updated. Associated insights are frozenand placed in the ACCEPTED state. MarkRecommendationSucceeded can be appliedto recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requiresthe recommender.*.update IAM permission for the specified recommender.

- name: Name of the recommendation.

typeProjectsLocationsRecommendersService

type ProjectsLocationsRecommendersService struct {Recommendations *ProjectsLocationsRecommendersRecommendationsService// contains filtered or unexported fields}

func (*ProjectsLocationsRecommendersService)GetConfigadded inv0.61.0

GetConfig: Gets the requested Recommender Config. There is only one instanceof the config for each Recommender.

  • name: Name of the Recommendation Config to get. Acceptable formats: *`projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` *`projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` *`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` *`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config`.

func (*ProjectsLocationsRecommendersService)UpdateConfigadded inv0.61.0

UpdateConfig: Updates a Recommender Config. This will create a new revisionof the config.

  • name: Identifier. Name of recommender config. Eg,projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config.

typeProjectsLocationsRecommendersUpdateConfigCalladded inv0.61.0

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

func (*ProjectsLocationsRecommendersUpdateConfigCall)Contextadded inv0.61.0

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

func (*ProjectsLocationsRecommendersUpdateConfigCall)Doadded inv0.61.0

Do executes the "recommender.projects.locations.recommenders.updateConfig" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1RecommenderConfig.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsRecommendersUpdateConfigCall)Fieldsadded inv0.61.0

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

func (*ProjectsLocationsRecommendersUpdateConfigCall)Headeradded inv0.61.0

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

func (*ProjectsLocationsRecommendersUpdateConfigCall)UpdateMaskadded inv0.61.0

UpdateMask sets the optional parameter "updateMask": The list of fields tobe updated.

func (*ProjectsLocationsRecommendersUpdateConfigCall)ValidateOnlyadded inv0.61.0

ValidateOnly sets the optional parameter "validateOnly": If true, validatethe request and preview the change, but do not actually update it.

typeProjectsLocationsService

type ProjectsLocationsService struct {InsightTypes *ProjectsLocationsInsightTypesServiceRecommenders *ProjectsLocationsRecommendersService// contains filtered or unexported fields}

funcNewProjectsLocationsService

func NewProjectsLocationsService(s *Service) *ProjectsLocationsService

func (*ProjectsLocationsService)Listadded inv0.156.0

List: Lists locations with recommendations or insights.

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

typeProjectsService

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

funcNewProjectsService

func NewProjectsService(s *Service) *ProjectsService

typeRecommendersListCalladded inv0.128.0

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

func (*RecommendersListCall)Contextadded inv0.128.0

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

func (*RecommendersListCall)Doadded inv0.128.0

Do executes the "recommender.recommenders.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1ListRecommendersResponse.ServerResponse.Headeror (if a response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*RecommendersListCall)Fieldsadded inv0.128.0

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

func (*RecommendersListCall)Headeradded inv0.128.0

func (c *RecommendersListCall) Header()http.Header

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

func (*RecommendersListCall)IfNoneMatchadded inv0.128.0

func (c *RecommendersListCall) IfNoneMatch(entityTagstring) *RecommendersListCall

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

func (*RecommendersListCall)PageSizeadded inv0.128.0

func (c *RecommendersListCall) PageSize(pageSizeint64) *RecommendersListCall

PageSize sets the optional parameter "pageSize": The number ofRecommenderTypes to return per page. The service may return fewer than thisvalue.

func (*RecommendersListCall)PageTokenadded inv0.128.0

func (c *RecommendersListCall) PageToken(pageTokenstring) *RecommendersListCall

PageToken sets the optional parameter "pageToken": A page token, receivedfrom a previous `ListRecommenders` call. Provide this to retrieve thesubsequent page.

func (*RecommendersListCall)Pagesadded inv0.128.0

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typeRecommendersServiceadded inv0.128.0

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

funcNewRecommendersServiceadded inv0.128.0

func NewRecommendersService(s *Service) *RecommendersService

func (*RecommendersService)Listadded inv0.128.0

List: Lists all available Recommenders. No IAM permissions are required.

typeService

type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentBillingAccounts *BillingAccountsServiceFolders *FoldersServiceInsightTypes *InsightTypesServiceOrganizations *OrganizationsServiceProjects *ProjectsServiceRecommenders *RecommendersService// contains filtered or unexported fields}

funcNewdeprecated

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

New creates a new Service. It uses the provided http.Client for requests.

Deprecated: please use NewService instead.To provide a custom HTTP client, use option.WithHTTPClient.If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.

funcNewService

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

NewService creates a new Service.

Source Files

View all Source files

Jump to

Keyboard shortcuts

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

[8]ページ先頭

©2009-2025 Movatter.jp