Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
feat: add methods for interacting with insights (#35)
Browse files Browse the repository at this point in the history
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/cd303691-1da7-4e59-a799-9ca83d49bbf2/targets

- [ ] To automatically regenerate this PR, check this box.

PiperOrigin-RevId: 319332818
Source-Link: googleapis/googleapis@76905ff
PiperOrigin-RevId: 319247865
Source-Link: googleapis/googleapis@5202cfe
Source-Link: googleapis/synthtool@84c4156
  • Loading branch information
yoshi-automation committed Jul 13, 2020
1 parent 109bb17 commit 940a3fb
Show file tree
Hide file tree
Showing 12 changed files with 2,045 additions and 95 deletions.
46 changes: 45 additions & 1 deletion google/cloud/recommender_v1/gapic/enums.py
Expand Up @@ -53,10 +53,54 @@ class Category(enum.IntEnum):
MANAGEABILITY = 4


class Insight(object):
class Category(enum.IntEnum):
"""
Insight category.
Attributes:
CATEGORY_UNSPECIFIED (int): Unspecified category.
COST (int): The insight is related to cost.
SECURITY (int): The insight is related to security.
PERFORMANCE (int): The insight is related to performance.
MANAGEABILITY (int): This insight is related to manageability.
"""

CATEGORY_UNSPECIFIED = 0
COST = 1
SECURITY = 2
PERFORMANCE = 3
MANAGEABILITY = 4


class InsightStateInfo(object):
class State(enum.IntEnum):
"""
Represents insight state.
Attributes:
STATE_UNSPECIFIED (int): Unspecified state.
ACTIVE (int): Insight is active. Content for ACTIVE insights can be updated by Google.
ACTIVE insights can be marked DISMISSED OR ACCEPTED.
ACCEPTED (int): 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 (int): Insight is dismissed. Content for DISMISSED insights can be updated by
Google. DISMISSED insights can be marked as ACTIVE.
"""

STATE_UNSPECIFIED = 0
ACTIVE = 1
ACCEPTED = 2
DISMISSED = 3


class RecommendationStateInfo(object):
class State(enum.IntEnum):
"""
Represents Recommendation State
Represents Recommendation State.
Attributes:
STATE_UNSPECIFIED (int): Default state. Don't use directly.
Expand Down

0 comments on commit 940a3fb

Please sign in to comment.