Show / Hide Table of Contents

Class BillingAccountsResource.LocationsResource.InsightTypesResource.InsightsResource

The "insights" collection of methods.

Inheritance
System.Object
BillingAccountsResource.LocationsResource.InsightTypesResource.InsightsResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Recommender.v1
Assembly: Google.Apis.Recommender.v1.dll
Syntax
public class InsightsResource

Constructors

InsightsResource(IClientService)

Constructs a new resource.

Declaration
public InsightsResource(IClientService service)
Parameters
Type Name Description
Google.Apis.Services.IClientService service

Methods

Get(String)

Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type.

Declaration
public virtual BillingAccountsResource.LocationsResource.InsightTypesResource.InsightsResource.GetRequest Get(string name)
Parameters
Type Name Description
System.String name

Required. Name of the insight.

Returns
Type Description
BillingAccountsResource.LocationsResource.InsightTypesResource.InsightsResource.GetRequest

List(String)

Lists insights for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified insight type.

Declaration
public virtual BillingAccountsResource.LocationsResource.InsightTypesResource.InsightsResource.ListRequest List(string parent)
Parameters
Type Name Description
System.String parent

Required. The container resource on which to execute the request. Acceptable formats: * projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID] * projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID] * billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[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 to supported insight types: https://cloud.google.com/recommender/docs/insights/insight-types.

Returns
Type Description
BillingAccountsResource.LocationsResource.InsightTypesResource.InsightsResource.ListRequest

MarkAccepted(GoogleCloudRecommenderV1MarkInsightAcceptedRequest, String)

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

Declaration
public virtual BillingAccountsResource.LocationsResource.InsightTypesResource.InsightsResource.MarkAcceptedRequest MarkAccepted(GoogleCloudRecommenderV1MarkInsightAcceptedRequest body, string name)
Parameters
Type Name Description
GoogleCloudRecommenderV1MarkInsightAcceptedRequest body

The body of the request.

System.String name

Required. Name of the insight.

Returns
Type Description
BillingAccountsResource.LocationsResource.InsightTypesResource.InsightsResource.MarkAcceptedRequest
In This Article
Back to top