Show / Hide Table of Contents

Class OrganizationsResource.LocationsResource.InsightTypesResource.InsightsResource

The "insights" collection of methods.

Inheritance
object
OrganizationsResource.LocationsResource.InsightTypesResource.InsightsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Recommender.v1beta1
Assembly: Google.Apis.Recommender.v1beta1.dll
Syntax
public class OrganizationsResource.LocationsResource.InsightTypesResource.InsightsResource

Constructors

InsightsResource(IClientService)

Constructs a new resource.

Declaration
public InsightsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Get(string)

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

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

Required. Name of the insight.

Returns
Type Description
OrganizationsResource.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 OrganizationsResource.LocationsResource.InsightTypesResource.InsightsResource.ListRequest List(string parent)
Parameters
Type Name Description
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
OrganizationsResource.LocationsResource.InsightTypesResource.InsightsResource.ListRequest

MarkAccepted(GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest, 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 OrganizationsResource.LocationsResource.InsightTypesResource.InsightsResource.MarkAcceptedRequest MarkAccepted(GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest body, string name)
Parameters
Type Name Description
GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest body

The body of the request.

string name

Required. Name of the insight.

Returns
Type Description
OrganizationsResource.LocationsResource.InsightTypesResource.InsightsResource.MarkAcceptedRequest
In this article
Back to top Generated by DocFX