pulumi-azure-native 2.68.0a1729519840__py3-none-any.whl → 2.68.0a1729615467__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-azure-native might be problematic. Click here for more details.
- pulumi_azure_native/__init__.py +29 -0
- pulumi_azure_native/awsconnector/_inputs.py +132 -96
- pulumi_azure_native/awsconnector/outputs.py +120 -66
- pulumi_azure_native/awsconnector/v20241201/_inputs.py +132 -96
- pulumi_azure_native/awsconnector/v20241201/outputs.py +120 -66
- pulumi_azure_native/cache/__init__.py +3 -0
- pulumi_azure_native/cache/access_policy.py +3 -3
- pulumi_azure_native/cache/access_policy_assignment.py +3 -3
- pulumi_azure_native/cache/firewall_rule.py +3 -3
- pulumi_azure_native/cache/get_access_policy.py +2 -2
- pulumi_azure_native/cache/get_access_policy_assignment.py +2 -2
- pulumi_azure_native/cache/get_firewall_rule.py +2 -2
- pulumi_azure_native/cache/get_linked_server.py +2 -2
- pulumi_azure_native/cache/get_patch_schedule.py +2 -2
- pulumi_azure_native/cache/get_private_endpoint_connection.py +2 -2
- pulumi_azure_native/cache/get_redis.py +2 -2
- pulumi_azure_native/cache/linked_server.py +3 -3
- pulumi_azure_native/cache/list_redis_keys.py +2 -2
- pulumi_azure_native/cache/patch_schedule.py +3 -3
- pulumi_azure_native/cache/private_endpoint_connection.py +3 -3
- pulumi_azure_native/cache/redis.py +3 -3
- pulumi_azure_native/cache/v20200601/redis.py +1 -1
- pulumi_azure_native/cache/v20230401/firewall_rule.py +1 -1
- pulumi_azure_native/cache/v20230401/linked_server.py +1 -1
- pulumi_azure_native/cache/v20230401/patch_schedule.py +1 -1
- pulumi_azure_native/cache/v20230401/private_endpoint_connection.py +1 -1
- pulumi_azure_native/cache/v20230401/redis.py +1 -1
- pulumi_azure_native/cache/v20230501preview/access_policy.py +1 -1
- pulumi_azure_native/cache/v20230501preview/access_policy_assignment.py +1 -1
- pulumi_azure_native/cache/v20230501preview/firewall_rule.py +1 -1
- pulumi_azure_native/cache/v20230501preview/linked_server.py +1 -1
- pulumi_azure_native/cache/v20230501preview/patch_schedule.py +1 -1
- pulumi_azure_native/cache/v20230501preview/private_endpoint_connection.py +1 -1
- pulumi_azure_native/cache/v20230501preview/redis.py +1 -1
- pulumi_azure_native/cache/v20230801/access_policy.py +1 -1
- pulumi_azure_native/cache/v20230801/access_policy_assignment.py +1 -1
- pulumi_azure_native/cache/v20230801/firewall_rule.py +1 -1
- pulumi_azure_native/cache/v20230801/linked_server.py +1 -1
- pulumi_azure_native/cache/v20230801/patch_schedule.py +1 -1
- pulumi_azure_native/cache/v20230801/private_endpoint_connection.py +1 -1
- pulumi_azure_native/cache/v20230801/redis.py +1 -1
- pulumi_azure_native/cache/v20240301/access_policy.py +1 -1
- pulumi_azure_native/cache/v20240301/access_policy_assignment.py +1 -1
- pulumi_azure_native/cache/v20240301/firewall_rule.py +1 -1
- pulumi_azure_native/cache/v20240301/linked_server.py +1 -1
- pulumi_azure_native/cache/v20240301/patch_schedule.py +1 -1
- pulumi_azure_native/cache/v20240301/private_endpoint_connection.py +1 -1
- pulumi_azure_native/cache/v20240301/redis.py +1 -1
- pulumi_azure_native/cache/v20240401preview/access_policy.py +1 -1
- pulumi_azure_native/cache/v20240401preview/access_policy_assignment.py +1 -1
- pulumi_azure_native/cache/v20240401preview/firewall_rule.py +1 -1
- pulumi_azure_native/cache/v20240401preview/linked_server.py +1 -1
- pulumi_azure_native/cache/v20240401preview/patch_schedule.py +1 -1
- pulumi_azure_native/cache/v20240401preview/private_endpoint_connection.py +1 -1
- pulumi_azure_native/cache/v20240401preview/redis.py +1 -1
- pulumi_azure_native/cache/v20241101/__init__.py +25 -0
- pulumi_azure_native/cache/v20241101/_enums.py +111 -0
- pulumi_azure_native/cache/v20241101/_inputs.py +646 -0
- pulumi_azure_native/cache/v20241101/access_policy.py +219 -0
- pulumi_azure_native/cache/v20241101/access_policy_assignment.py +279 -0
- pulumi_azure_native/cache/v20241101/firewall_rule.py +239 -0
- pulumi_azure_native/cache/v20241101/get_access_policy.py +148 -0
- pulumi_azure_native/cache/v20241101/get_access_policy_assignment.py +176 -0
- pulumi_azure_native/cache/v20241101/get_firewall_rule.py +148 -0
- pulumi_azure_native/cache/v20241101/get_linked_server.py +204 -0
- pulumi_azure_native/cache/v20241101/get_patch_schedule.py +149 -0
- pulumi_azure_native/cache/v20241101/get_private_endpoint_connection.py +163 -0
- pulumi_azure_native/cache/v20241101/get_redis.py +493 -0
- pulumi_azure_native/cache/v20241101/linked_server.py +299 -0
- pulumi_azure_native/cache/v20241101/list_redis_keys.py +100 -0
- pulumi_azure_native/cache/v20241101/outputs.py +917 -0
- pulumi_azure_native/cache/v20241101/patch_schedule.py +221 -0
- pulumi_azure_native/cache/v20241101/private_endpoint_connection.py +232 -0
- pulumi_azure_native/cache/v20241101/redis.py +804 -0
- pulumi_azure_native/costmanagement/__init__.py +3 -0
- pulumi_azure_native/costmanagement/budget.py +3 -3
- pulumi_azure_native/costmanagement/cost_allocation_rule.py +3 -3
- pulumi_azure_native/costmanagement/export.py +3 -3
- pulumi_azure_native/costmanagement/get_budget.py +2 -2
- pulumi_azure_native/costmanagement/get_cost_allocation_rule.py +2 -2
- pulumi_azure_native/costmanagement/get_export.py +2 -2
- pulumi_azure_native/costmanagement/get_scheduled_action.py +2 -2
- pulumi_azure_native/costmanagement/get_scheduled_action_by_scope.py +2 -2
- pulumi_azure_native/costmanagement/get_view.py +2 -2
- pulumi_azure_native/costmanagement/get_view_by_scope.py +2 -2
- pulumi_azure_native/costmanagement/scheduled_action.py +3 -3
- pulumi_azure_native/costmanagement/scheduled_action_by_scope.py +3 -3
- pulumi_azure_native/costmanagement/tag_inheritance_setting.py +1 -1
- pulumi_azure_native/costmanagement/v20190401preview/budget.py +1 -1
- pulumi_azure_native/costmanagement/v20191001/export.py +1 -1
- pulumi_azure_native/costmanagement/v20191101/view.py +1 -1
- pulumi_azure_native/costmanagement/v20191101/view_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20200301preview/cost_allocation_rule.py +1 -1
- pulumi_azure_native/costmanagement/v20200601/view.py +1 -1
- pulumi_azure_native/costmanagement/v20200601/view_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20221001/view.py +1 -1
- pulumi_azure_native/costmanagement/v20221001/view_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20221005preview/tag_inheritance_setting.py +1 -1
- pulumi_azure_native/costmanagement/v20221005preview/view.py +1 -1
- pulumi_azure_native/costmanagement/v20221005preview/view_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20230301/export.py +1 -1
- pulumi_azure_native/costmanagement/v20230301/scheduled_action.py +1 -1
- pulumi_azure_native/costmanagement/v20230301/scheduled_action_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20230301/view.py +1 -1
- pulumi_azure_native/costmanagement/v20230301/view_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20230401preview/budget.py +1 -1
- pulumi_azure_native/costmanagement/v20230401preview/export.py +1 -1
- pulumi_azure_native/costmanagement/v20230401preview/scheduled_action.py +1 -1
- pulumi_azure_native/costmanagement/v20230401preview/scheduled_action_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20230401preview/view.py +1 -1
- pulumi_azure_native/costmanagement/v20230401preview/view_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20230701preview/export.py +1 -1
- pulumi_azure_native/costmanagement/v20230701preview/scheduled_action.py +1 -1
- pulumi_azure_native/costmanagement/v20230701preview/scheduled_action_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20230701preview/view.py +1 -1
- pulumi_azure_native/costmanagement/v20230701preview/view_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20230801/budget.py +1 -1
- pulumi_azure_native/costmanagement/v20230801/cost_allocation_rule.py +1 -1
- pulumi_azure_native/costmanagement/v20230801/export.py +1 -1
- pulumi_azure_native/costmanagement/v20230801/scheduled_action.py +1 -1
- pulumi_azure_native/costmanagement/v20230801/scheduled_action_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20230801/tag_inheritance_setting.py +1 -1
- pulumi_azure_native/costmanagement/v20230801/view.py +1 -1
- pulumi_azure_native/costmanagement/v20230801/view_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20230901/budget.py +1 -1
- pulumi_azure_native/costmanagement/v20230901/cost_allocation_rule.py +1 -1
- pulumi_azure_native/costmanagement/v20230901/export.py +1 -1
- pulumi_azure_native/costmanagement/v20230901/scheduled_action.py +1 -1
- pulumi_azure_native/costmanagement/v20230901/scheduled_action_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20230901/tag_inheritance_setting.py +1 -1
- pulumi_azure_native/costmanagement/v20230901/view.py +1 -1
- pulumi_azure_native/costmanagement/v20230901/view_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20231101/budget.py +1 -1
- pulumi_azure_native/costmanagement/v20231101/cost_allocation_rule.py +1 -1
- pulumi_azure_native/costmanagement/v20231101/export.py +1 -1
- pulumi_azure_native/costmanagement/v20231101/scheduled_action.py +1 -1
- pulumi_azure_native/costmanagement/v20231101/scheduled_action_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20231101/tag_inheritance_setting.py +1 -1
- pulumi_azure_native/costmanagement/v20231101/view.py +1 -1
- pulumi_azure_native/costmanagement/v20231101/view_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20240801/__init__.py +26 -0
- pulumi_azure_native/costmanagement/v20240801/_enums.py +538 -0
- pulumi_azure_native/costmanagement/v20240801/_inputs.py +2660 -0
- pulumi_azure_native/costmanagement/v20240801/budget.py +619 -0
- pulumi_azure_native/costmanagement/v20240801/cost_allocation_rule.py +190 -0
- pulumi_azure_native/costmanagement/v20240801/export.py +415 -0
- pulumi_azure_native/costmanagement/v20240801/get_budget.py +337 -0
- pulumi_azure_native/costmanagement/v20240801/get_cost_allocation_rule.py +129 -0
- pulumi_azure_native/costmanagement/v20240801/get_export.py +261 -0
- pulumi_azure_native/costmanagement/v20240801/get_scheduled_action.py +263 -0
- pulumi_azure_native/costmanagement/v20240801/get_scheduled_action_by_scope.py +269 -0
- pulumi_azure_native/costmanagement/v20240801/get_tag_inheritance_setting.py +144 -0
- pulumi_azure_native/costmanagement/v20240801/get_view.py +333 -0
- pulumi_azure_native/costmanagement/v20240801/get_view_by_scope.py +339 -0
- pulumi_azure_native/costmanagement/v20240801/outputs.py +2593 -0
- pulumi_azure_native/costmanagement/v20240801/scheduled_action.py +425 -0
- pulumi_azure_native/costmanagement/v20240801/scheduled_action_by_scope.py +426 -0
- pulumi_azure_native/costmanagement/v20240801/tag_inheritance_setting.py +222 -0
- pulumi_azure_native/costmanagement/v20240801/view.py +587 -0
- pulumi_azure_native/costmanagement/v20240801/view_by_scope.py +588 -0
- pulumi_azure_native/costmanagement/view.py +3 -3
- pulumi_azure_native/costmanagement/view_by_scope.py +3 -3
- pulumi_azure_native/pulumi-plugin.json +1 -1
- {pulumi_azure_native-2.68.0a1729519840.dist-info → pulumi_azure_native-2.68.0a1729615467.dist-info}/METADATA +1 -1
- {pulumi_azure_native-2.68.0a1729519840.dist-info → pulumi_azure_native-2.68.0a1729615467.dist-info}/RECORD +167 -128
- {pulumi_azure_native-2.68.0a1729519840.dist-info → pulumi_azure_native-2.68.0a1729615467.dist-info}/WHEEL +0 -0
- {pulumi_azure_native-2.68.0a1729519840.dist-info → pulumi_azure_native-2.68.0a1729615467.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from ... import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
'GetViewResult',
|
|
20
|
+
'AwaitableGetViewResult',
|
|
21
|
+
'get_view',
|
|
22
|
+
'get_view_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetViewResult:
|
|
27
|
+
"""
|
|
28
|
+
States and configurations of Cost Analysis.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, accumulated=None, chart=None, created_on=None, currency=None, data_set=None, date_range=None, display_name=None, e_tag=None, id=None, include_monetary_commitment=None, kpis=None, metric=None, modified_on=None, name=None, pivots=None, scope=None, time_period=None, timeframe=None, type=None):
|
|
31
|
+
if accumulated and not isinstance(accumulated, str):
|
|
32
|
+
raise TypeError("Expected argument 'accumulated' to be a str")
|
|
33
|
+
pulumi.set(__self__, "accumulated", accumulated)
|
|
34
|
+
if chart and not isinstance(chart, str):
|
|
35
|
+
raise TypeError("Expected argument 'chart' to be a str")
|
|
36
|
+
pulumi.set(__self__, "chart", chart)
|
|
37
|
+
if created_on and not isinstance(created_on, str):
|
|
38
|
+
raise TypeError("Expected argument 'created_on' to be a str")
|
|
39
|
+
pulumi.set(__self__, "created_on", created_on)
|
|
40
|
+
if currency and not isinstance(currency, str):
|
|
41
|
+
raise TypeError("Expected argument 'currency' to be a str")
|
|
42
|
+
pulumi.set(__self__, "currency", currency)
|
|
43
|
+
if data_set and not isinstance(data_set, dict):
|
|
44
|
+
raise TypeError("Expected argument 'data_set' to be a dict")
|
|
45
|
+
pulumi.set(__self__, "data_set", data_set)
|
|
46
|
+
if date_range and not isinstance(date_range, str):
|
|
47
|
+
raise TypeError("Expected argument 'date_range' to be a str")
|
|
48
|
+
pulumi.set(__self__, "date_range", date_range)
|
|
49
|
+
if display_name and not isinstance(display_name, str):
|
|
50
|
+
raise TypeError("Expected argument 'display_name' to be a str")
|
|
51
|
+
pulumi.set(__self__, "display_name", display_name)
|
|
52
|
+
if e_tag and not isinstance(e_tag, str):
|
|
53
|
+
raise TypeError("Expected argument 'e_tag' to be a str")
|
|
54
|
+
pulumi.set(__self__, "e_tag", e_tag)
|
|
55
|
+
if id and not isinstance(id, str):
|
|
56
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
57
|
+
pulumi.set(__self__, "id", id)
|
|
58
|
+
if include_monetary_commitment and not isinstance(include_monetary_commitment, bool):
|
|
59
|
+
raise TypeError("Expected argument 'include_monetary_commitment' to be a bool")
|
|
60
|
+
pulumi.set(__self__, "include_monetary_commitment", include_monetary_commitment)
|
|
61
|
+
if kpis and not isinstance(kpis, list):
|
|
62
|
+
raise TypeError("Expected argument 'kpis' to be a list")
|
|
63
|
+
pulumi.set(__self__, "kpis", kpis)
|
|
64
|
+
if metric and not isinstance(metric, str):
|
|
65
|
+
raise TypeError("Expected argument 'metric' to be a str")
|
|
66
|
+
pulumi.set(__self__, "metric", metric)
|
|
67
|
+
if modified_on and not isinstance(modified_on, str):
|
|
68
|
+
raise TypeError("Expected argument 'modified_on' to be a str")
|
|
69
|
+
pulumi.set(__self__, "modified_on", modified_on)
|
|
70
|
+
if name and not isinstance(name, str):
|
|
71
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
72
|
+
pulumi.set(__self__, "name", name)
|
|
73
|
+
if pivots and not isinstance(pivots, list):
|
|
74
|
+
raise TypeError("Expected argument 'pivots' to be a list")
|
|
75
|
+
pulumi.set(__self__, "pivots", pivots)
|
|
76
|
+
if scope and not isinstance(scope, str):
|
|
77
|
+
raise TypeError("Expected argument 'scope' to be a str")
|
|
78
|
+
pulumi.set(__self__, "scope", scope)
|
|
79
|
+
if time_period and not isinstance(time_period, dict):
|
|
80
|
+
raise TypeError("Expected argument 'time_period' to be a dict")
|
|
81
|
+
pulumi.set(__self__, "time_period", time_period)
|
|
82
|
+
if timeframe and not isinstance(timeframe, str):
|
|
83
|
+
raise TypeError("Expected argument 'timeframe' to be a str")
|
|
84
|
+
pulumi.set(__self__, "timeframe", timeframe)
|
|
85
|
+
if type and not isinstance(type, str):
|
|
86
|
+
raise TypeError("Expected argument 'type' to be a str")
|
|
87
|
+
pulumi.set(__self__, "type", type)
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
@pulumi.getter
|
|
91
|
+
def accumulated(self) -> Optional[str]:
|
|
92
|
+
"""
|
|
93
|
+
Show costs accumulated over time.
|
|
94
|
+
"""
|
|
95
|
+
return pulumi.get(self, "accumulated")
|
|
96
|
+
|
|
97
|
+
@property
|
|
98
|
+
@pulumi.getter
|
|
99
|
+
def chart(self) -> Optional[str]:
|
|
100
|
+
"""
|
|
101
|
+
Chart type of the main view in Cost Analysis. Required.
|
|
102
|
+
"""
|
|
103
|
+
return pulumi.get(self, "chart")
|
|
104
|
+
|
|
105
|
+
@property
|
|
106
|
+
@pulumi.getter(name="createdOn")
|
|
107
|
+
def created_on(self) -> str:
|
|
108
|
+
"""
|
|
109
|
+
Date the user created this view.
|
|
110
|
+
"""
|
|
111
|
+
return pulumi.get(self, "created_on")
|
|
112
|
+
|
|
113
|
+
@property
|
|
114
|
+
@pulumi.getter
|
|
115
|
+
def currency(self) -> str:
|
|
116
|
+
"""
|
|
117
|
+
Currency of the current view.
|
|
118
|
+
"""
|
|
119
|
+
return pulumi.get(self, "currency")
|
|
120
|
+
|
|
121
|
+
@property
|
|
122
|
+
@pulumi.getter(name="dataSet")
|
|
123
|
+
def data_set(self) -> Optional['outputs.ReportConfigDatasetResponse']:
|
|
124
|
+
"""
|
|
125
|
+
Has definition for data in this report config.
|
|
126
|
+
"""
|
|
127
|
+
return pulumi.get(self, "data_set")
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
@pulumi.getter(name="dateRange")
|
|
131
|
+
def date_range(self) -> Optional[str]:
|
|
132
|
+
"""
|
|
133
|
+
Date range of the current view.
|
|
134
|
+
"""
|
|
135
|
+
return pulumi.get(self, "date_range")
|
|
136
|
+
|
|
137
|
+
@property
|
|
138
|
+
@pulumi.getter(name="displayName")
|
|
139
|
+
def display_name(self) -> Optional[str]:
|
|
140
|
+
"""
|
|
141
|
+
User input name of the view. Required.
|
|
142
|
+
"""
|
|
143
|
+
return pulumi.get(self, "display_name")
|
|
144
|
+
|
|
145
|
+
@property
|
|
146
|
+
@pulumi.getter(name="eTag")
|
|
147
|
+
def e_tag(self) -> Optional[str]:
|
|
148
|
+
"""
|
|
149
|
+
eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
|
|
150
|
+
"""
|
|
151
|
+
return pulumi.get(self, "e_tag")
|
|
152
|
+
|
|
153
|
+
@property
|
|
154
|
+
@pulumi.getter
|
|
155
|
+
def id(self) -> str:
|
|
156
|
+
"""
|
|
157
|
+
Resource Id.
|
|
158
|
+
"""
|
|
159
|
+
return pulumi.get(self, "id")
|
|
160
|
+
|
|
161
|
+
@property
|
|
162
|
+
@pulumi.getter(name="includeMonetaryCommitment")
|
|
163
|
+
def include_monetary_commitment(self) -> Optional[bool]:
|
|
164
|
+
"""
|
|
165
|
+
If true, report includes monetary commitment.
|
|
166
|
+
"""
|
|
167
|
+
return pulumi.get(self, "include_monetary_commitment")
|
|
168
|
+
|
|
169
|
+
@property
|
|
170
|
+
@pulumi.getter
|
|
171
|
+
def kpis(self) -> Optional[Sequence['outputs.KpiPropertiesResponse']]:
|
|
172
|
+
"""
|
|
173
|
+
List of KPIs to show in Cost Analysis UI.
|
|
174
|
+
"""
|
|
175
|
+
return pulumi.get(self, "kpis")
|
|
176
|
+
|
|
177
|
+
@property
|
|
178
|
+
@pulumi.getter
|
|
179
|
+
def metric(self) -> Optional[str]:
|
|
180
|
+
"""
|
|
181
|
+
Metric to use when displaying costs.
|
|
182
|
+
"""
|
|
183
|
+
return pulumi.get(self, "metric")
|
|
184
|
+
|
|
185
|
+
@property
|
|
186
|
+
@pulumi.getter(name="modifiedOn")
|
|
187
|
+
def modified_on(self) -> Optional[str]:
|
|
188
|
+
"""
|
|
189
|
+
Date when the user last modified this view.
|
|
190
|
+
"""
|
|
191
|
+
return pulumi.get(self, "modified_on")
|
|
192
|
+
|
|
193
|
+
@property
|
|
194
|
+
@pulumi.getter
|
|
195
|
+
def name(self) -> str:
|
|
196
|
+
"""
|
|
197
|
+
Resource name.
|
|
198
|
+
"""
|
|
199
|
+
return pulumi.get(self, "name")
|
|
200
|
+
|
|
201
|
+
@property
|
|
202
|
+
@pulumi.getter
|
|
203
|
+
def pivots(self) -> Optional[Sequence['outputs.PivotPropertiesResponse']]:
|
|
204
|
+
"""
|
|
205
|
+
Configuration of 3 sub-views in the Cost Analysis UI.
|
|
206
|
+
"""
|
|
207
|
+
return pulumi.get(self, "pivots")
|
|
208
|
+
|
|
209
|
+
@property
|
|
210
|
+
@pulumi.getter
|
|
211
|
+
def scope(self) -> Optional[str]:
|
|
212
|
+
"""
|
|
213
|
+
Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.
|
|
214
|
+
"""
|
|
215
|
+
return pulumi.get(self, "scope")
|
|
216
|
+
|
|
217
|
+
@property
|
|
218
|
+
@pulumi.getter(name="timePeriod")
|
|
219
|
+
def time_period(self) -> Optional['outputs.ReportConfigTimePeriodResponse']:
|
|
220
|
+
"""
|
|
221
|
+
Has time period for pulling data for the report.
|
|
222
|
+
"""
|
|
223
|
+
return pulumi.get(self, "time_period")
|
|
224
|
+
|
|
225
|
+
@property
|
|
226
|
+
@pulumi.getter
|
|
227
|
+
def timeframe(self) -> str:
|
|
228
|
+
"""
|
|
229
|
+
The time frame for pulling data for the report. If custom, then a specific time period must be provided.
|
|
230
|
+
"""
|
|
231
|
+
return pulumi.get(self, "timeframe")
|
|
232
|
+
|
|
233
|
+
@property
|
|
234
|
+
@pulumi.getter
|
|
235
|
+
def type(self) -> str:
|
|
236
|
+
"""
|
|
237
|
+
Resource type.
|
|
238
|
+
"""
|
|
239
|
+
return pulumi.get(self, "type")
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
class AwaitableGetViewResult(GetViewResult):
|
|
243
|
+
# pylint: disable=using-constant-test
|
|
244
|
+
def __await__(self):
|
|
245
|
+
if False:
|
|
246
|
+
yield self
|
|
247
|
+
return GetViewResult(
|
|
248
|
+
accumulated=self.accumulated,
|
|
249
|
+
chart=self.chart,
|
|
250
|
+
created_on=self.created_on,
|
|
251
|
+
currency=self.currency,
|
|
252
|
+
data_set=self.data_set,
|
|
253
|
+
date_range=self.date_range,
|
|
254
|
+
display_name=self.display_name,
|
|
255
|
+
e_tag=self.e_tag,
|
|
256
|
+
id=self.id,
|
|
257
|
+
include_monetary_commitment=self.include_monetary_commitment,
|
|
258
|
+
kpis=self.kpis,
|
|
259
|
+
metric=self.metric,
|
|
260
|
+
modified_on=self.modified_on,
|
|
261
|
+
name=self.name,
|
|
262
|
+
pivots=self.pivots,
|
|
263
|
+
scope=self.scope,
|
|
264
|
+
time_period=self.time_period,
|
|
265
|
+
timeframe=self.timeframe,
|
|
266
|
+
type=self.type)
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
def get_view(view_name: Optional[str] = None,
|
|
270
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetViewResult:
|
|
271
|
+
"""
|
|
272
|
+
Gets the view by view name.
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
:param str view_name: View name
|
|
276
|
+
"""
|
|
277
|
+
__args__ = dict()
|
|
278
|
+
__args__['viewName'] = view_name
|
|
279
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
280
|
+
__ret__ = pulumi.runtime.invoke('azure-native:costmanagement/v20240801:getView', __args__, opts=opts, typ=GetViewResult).value
|
|
281
|
+
|
|
282
|
+
return AwaitableGetViewResult(
|
|
283
|
+
accumulated=pulumi.get(__ret__, 'accumulated'),
|
|
284
|
+
chart=pulumi.get(__ret__, 'chart'),
|
|
285
|
+
created_on=pulumi.get(__ret__, 'created_on'),
|
|
286
|
+
currency=pulumi.get(__ret__, 'currency'),
|
|
287
|
+
data_set=pulumi.get(__ret__, 'data_set'),
|
|
288
|
+
date_range=pulumi.get(__ret__, 'date_range'),
|
|
289
|
+
display_name=pulumi.get(__ret__, 'display_name'),
|
|
290
|
+
e_tag=pulumi.get(__ret__, 'e_tag'),
|
|
291
|
+
id=pulumi.get(__ret__, 'id'),
|
|
292
|
+
include_monetary_commitment=pulumi.get(__ret__, 'include_monetary_commitment'),
|
|
293
|
+
kpis=pulumi.get(__ret__, 'kpis'),
|
|
294
|
+
metric=pulumi.get(__ret__, 'metric'),
|
|
295
|
+
modified_on=pulumi.get(__ret__, 'modified_on'),
|
|
296
|
+
name=pulumi.get(__ret__, 'name'),
|
|
297
|
+
pivots=pulumi.get(__ret__, 'pivots'),
|
|
298
|
+
scope=pulumi.get(__ret__, 'scope'),
|
|
299
|
+
time_period=pulumi.get(__ret__, 'time_period'),
|
|
300
|
+
timeframe=pulumi.get(__ret__, 'timeframe'),
|
|
301
|
+
type=pulumi.get(__ret__, 'type'))
|
|
302
|
+
def get_view_output(view_name: Optional[pulumi.Input[str]] = None,
|
|
303
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetViewResult]:
|
|
304
|
+
"""
|
|
305
|
+
Gets the view by view name.
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
:param str view_name: View name
|
|
309
|
+
"""
|
|
310
|
+
__args__ = dict()
|
|
311
|
+
__args__['viewName'] = view_name
|
|
312
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
313
|
+
__ret__ = pulumi.runtime.invoke_output('azure-native:costmanagement/v20240801:getView', __args__, opts=opts, typ=GetViewResult)
|
|
314
|
+
return __ret__.apply(lambda __response__: GetViewResult(
|
|
315
|
+
accumulated=pulumi.get(__response__, 'accumulated'),
|
|
316
|
+
chart=pulumi.get(__response__, 'chart'),
|
|
317
|
+
created_on=pulumi.get(__response__, 'created_on'),
|
|
318
|
+
currency=pulumi.get(__response__, 'currency'),
|
|
319
|
+
data_set=pulumi.get(__response__, 'data_set'),
|
|
320
|
+
date_range=pulumi.get(__response__, 'date_range'),
|
|
321
|
+
display_name=pulumi.get(__response__, 'display_name'),
|
|
322
|
+
e_tag=pulumi.get(__response__, 'e_tag'),
|
|
323
|
+
id=pulumi.get(__response__, 'id'),
|
|
324
|
+
include_monetary_commitment=pulumi.get(__response__, 'include_monetary_commitment'),
|
|
325
|
+
kpis=pulumi.get(__response__, 'kpis'),
|
|
326
|
+
metric=pulumi.get(__response__, 'metric'),
|
|
327
|
+
modified_on=pulumi.get(__response__, 'modified_on'),
|
|
328
|
+
name=pulumi.get(__response__, 'name'),
|
|
329
|
+
pivots=pulumi.get(__response__, 'pivots'),
|
|
330
|
+
scope=pulumi.get(__response__, 'scope'),
|
|
331
|
+
time_period=pulumi.get(__response__, 'time_period'),
|
|
332
|
+
timeframe=pulumi.get(__response__, 'timeframe'),
|
|
333
|
+
type=pulumi.get(__response__, 'type')))
|
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from ... import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
'GetViewByScopeResult',
|
|
20
|
+
'AwaitableGetViewByScopeResult',
|
|
21
|
+
'get_view_by_scope',
|
|
22
|
+
'get_view_by_scope_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetViewByScopeResult:
|
|
27
|
+
"""
|
|
28
|
+
States and configurations of Cost Analysis.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, accumulated=None, chart=None, created_on=None, currency=None, data_set=None, date_range=None, display_name=None, e_tag=None, id=None, include_monetary_commitment=None, kpis=None, metric=None, modified_on=None, name=None, pivots=None, scope=None, time_period=None, timeframe=None, type=None):
|
|
31
|
+
if accumulated and not isinstance(accumulated, str):
|
|
32
|
+
raise TypeError("Expected argument 'accumulated' to be a str")
|
|
33
|
+
pulumi.set(__self__, "accumulated", accumulated)
|
|
34
|
+
if chart and not isinstance(chart, str):
|
|
35
|
+
raise TypeError("Expected argument 'chart' to be a str")
|
|
36
|
+
pulumi.set(__self__, "chart", chart)
|
|
37
|
+
if created_on and not isinstance(created_on, str):
|
|
38
|
+
raise TypeError("Expected argument 'created_on' to be a str")
|
|
39
|
+
pulumi.set(__self__, "created_on", created_on)
|
|
40
|
+
if currency and not isinstance(currency, str):
|
|
41
|
+
raise TypeError("Expected argument 'currency' to be a str")
|
|
42
|
+
pulumi.set(__self__, "currency", currency)
|
|
43
|
+
if data_set and not isinstance(data_set, dict):
|
|
44
|
+
raise TypeError("Expected argument 'data_set' to be a dict")
|
|
45
|
+
pulumi.set(__self__, "data_set", data_set)
|
|
46
|
+
if date_range and not isinstance(date_range, str):
|
|
47
|
+
raise TypeError("Expected argument 'date_range' to be a str")
|
|
48
|
+
pulumi.set(__self__, "date_range", date_range)
|
|
49
|
+
if display_name and not isinstance(display_name, str):
|
|
50
|
+
raise TypeError("Expected argument 'display_name' to be a str")
|
|
51
|
+
pulumi.set(__self__, "display_name", display_name)
|
|
52
|
+
if e_tag and not isinstance(e_tag, str):
|
|
53
|
+
raise TypeError("Expected argument 'e_tag' to be a str")
|
|
54
|
+
pulumi.set(__self__, "e_tag", e_tag)
|
|
55
|
+
if id and not isinstance(id, str):
|
|
56
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
57
|
+
pulumi.set(__self__, "id", id)
|
|
58
|
+
if include_monetary_commitment and not isinstance(include_monetary_commitment, bool):
|
|
59
|
+
raise TypeError("Expected argument 'include_monetary_commitment' to be a bool")
|
|
60
|
+
pulumi.set(__self__, "include_monetary_commitment", include_monetary_commitment)
|
|
61
|
+
if kpis and not isinstance(kpis, list):
|
|
62
|
+
raise TypeError("Expected argument 'kpis' to be a list")
|
|
63
|
+
pulumi.set(__self__, "kpis", kpis)
|
|
64
|
+
if metric and not isinstance(metric, str):
|
|
65
|
+
raise TypeError("Expected argument 'metric' to be a str")
|
|
66
|
+
pulumi.set(__self__, "metric", metric)
|
|
67
|
+
if modified_on and not isinstance(modified_on, str):
|
|
68
|
+
raise TypeError("Expected argument 'modified_on' to be a str")
|
|
69
|
+
pulumi.set(__self__, "modified_on", modified_on)
|
|
70
|
+
if name and not isinstance(name, str):
|
|
71
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
72
|
+
pulumi.set(__self__, "name", name)
|
|
73
|
+
if pivots and not isinstance(pivots, list):
|
|
74
|
+
raise TypeError("Expected argument 'pivots' to be a list")
|
|
75
|
+
pulumi.set(__self__, "pivots", pivots)
|
|
76
|
+
if scope and not isinstance(scope, str):
|
|
77
|
+
raise TypeError("Expected argument 'scope' to be a str")
|
|
78
|
+
pulumi.set(__self__, "scope", scope)
|
|
79
|
+
if time_period and not isinstance(time_period, dict):
|
|
80
|
+
raise TypeError("Expected argument 'time_period' to be a dict")
|
|
81
|
+
pulumi.set(__self__, "time_period", time_period)
|
|
82
|
+
if timeframe and not isinstance(timeframe, str):
|
|
83
|
+
raise TypeError("Expected argument 'timeframe' to be a str")
|
|
84
|
+
pulumi.set(__self__, "timeframe", timeframe)
|
|
85
|
+
if type and not isinstance(type, str):
|
|
86
|
+
raise TypeError("Expected argument 'type' to be a str")
|
|
87
|
+
pulumi.set(__self__, "type", type)
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
@pulumi.getter
|
|
91
|
+
def accumulated(self) -> Optional[str]:
|
|
92
|
+
"""
|
|
93
|
+
Show costs accumulated over time.
|
|
94
|
+
"""
|
|
95
|
+
return pulumi.get(self, "accumulated")
|
|
96
|
+
|
|
97
|
+
@property
|
|
98
|
+
@pulumi.getter
|
|
99
|
+
def chart(self) -> Optional[str]:
|
|
100
|
+
"""
|
|
101
|
+
Chart type of the main view in Cost Analysis. Required.
|
|
102
|
+
"""
|
|
103
|
+
return pulumi.get(self, "chart")
|
|
104
|
+
|
|
105
|
+
@property
|
|
106
|
+
@pulumi.getter(name="createdOn")
|
|
107
|
+
def created_on(self) -> str:
|
|
108
|
+
"""
|
|
109
|
+
Date the user created this view.
|
|
110
|
+
"""
|
|
111
|
+
return pulumi.get(self, "created_on")
|
|
112
|
+
|
|
113
|
+
@property
|
|
114
|
+
@pulumi.getter
|
|
115
|
+
def currency(self) -> str:
|
|
116
|
+
"""
|
|
117
|
+
Currency of the current view.
|
|
118
|
+
"""
|
|
119
|
+
return pulumi.get(self, "currency")
|
|
120
|
+
|
|
121
|
+
@property
|
|
122
|
+
@pulumi.getter(name="dataSet")
|
|
123
|
+
def data_set(self) -> Optional['outputs.ReportConfigDatasetResponse']:
|
|
124
|
+
"""
|
|
125
|
+
Has definition for data in this report config.
|
|
126
|
+
"""
|
|
127
|
+
return pulumi.get(self, "data_set")
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
@pulumi.getter(name="dateRange")
|
|
131
|
+
def date_range(self) -> Optional[str]:
|
|
132
|
+
"""
|
|
133
|
+
Date range of the current view.
|
|
134
|
+
"""
|
|
135
|
+
return pulumi.get(self, "date_range")
|
|
136
|
+
|
|
137
|
+
@property
|
|
138
|
+
@pulumi.getter(name="displayName")
|
|
139
|
+
def display_name(self) -> Optional[str]:
|
|
140
|
+
"""
|
|
141
|
+
User input name of the view. Required.
|
|
142
|
+
"""
|
|
143
|
+
return pulumi.get(self, "display_name")
|
|
144
|
+
|
|
145
|
+
@property
|
|
146
|
+
@pulumi.getter(name="eTag")
|
|
147
|
+
def e_tag(self) -> Optional[str]:
|
|
148
|
+
"""
|
|
149
|
+
eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
|
|
150
|
+
"""
|
|
151
|
+
return pulumi.get(self, "e_tag")
|
|
152
|
+
|
|
153
|
+
@property
|
|
154
|
+
@pulumi.getter
|
|
155
|
+
def id(self) -> str:
|
|
156
|
+
"""
|
|
157
|
+
Resource Id.
|
|
158
|
+
"""
|
|
159
|
+
return pulumi.get(self, "id")
|
|
160
|
+
|
|
161
|
+
@property
|
|
162
|
+
@pulumi.getter(name="includeMonetaryCommitment")
|
|
163
|
+
def include_monetary_commitment(self) -> Optional[bool]:
|
|
164
|
+
"""
|
|
165
|
+
If true, report includes monetary commitment.
|
|
166
|
+
"""
|
|
167
|
+
return pulumi.get(self, "include_monetary_commitment")
|
|
168
|
+
|
|
169
|
+
@property
|
|
170
|
+
@pulumi.getter
|
|
171
|
+
def kpis(self) -> Optional[Sequence['outputs.KpiPropertiesResponse']]:
|
|
172
|
+
"""
|
|
173
|
+
List of KPIs to show in Cost Analysis UI.
|
|
174
|
+
"""
|
|
175
|
+
return pulumi.get(self, "kpis")
|
|
176
|
+
|
|
177
|
+
@property
|
|
178
|
+
@pulumi.getter
|
|
179
|
+
def metric(self) -> Optional[str]:
|
|
180
|
+
"""
|
|
181
|
+
Metric to use when displaying costs.
|
|
182
|
+
"""
|
|
183
|
+
return pulumi.get(self, "metric")
|
|
184
|
+
|
|
185
|
+
@property
|
|
186
|
+
@pulumi.getter(name="modifiedOn")
|
|
187
|
+
def modified_on(self) -> Optional[str]:
|
|
188
|
+
"""
|
|
189
|
+
Date when the user last modified this view.
|
|
190
|
+
"""
|
|
191
|
+
return pulumi.get(self, "modified_on")
|
|
192
|
+
|
|
193
|
+
@property
|
|
194
|
+
@pulumi.getter
|
|
195
|
+
def name(self) -> str:
|
|
196
|
+
"""
|
|
197
|
+
Resource name.
|
|
198
|
+
"""
|
|
199
|
+
return pulumi.get(self, "name")
|
|
200
|
+
|
|
201
|
+
@property
|
|
202
|
+
@pulumi.getter
|
|
203
|
+
def pivots(self) -> Optional[Sequence['outputs.PivotPropertiesResponse']]:
|
|
204
|
+
"""
|
|
205
|
+
Configuration of 3 sub-views in the Cost Analysis UI.
|
|
206
|
+
"""
|
|
207
|
+
return pulumi.get(self, "pivots")
|
|
208
|
+
|
|
209
|
+
@property
|
|
210
|
+
@pulumi.getter
|
|
211
|
+
def scope(self) -> Optional[str]:
|
|
212
|
+
"""
|
|
213
|
+
Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.
|
|
214
|
+
"""
|
|
215
|
+
return pulumi.get(self, "scope")
|
|
216
|
+
|
|
217
|
+
@property
|
|
218
|
+
@pulumi.getter(name="timePeriod")
|
|
219
|
+
def time_period(self) -> Optional['outputs.ReportConfigTimePeriodResponse']:
|
|
220
|
+
"""
|
|
221
|
+
Has time period for pulling data for the report.
|
|
222
|
+
"""
|
|
223
|
+
return pulumi.get(self, "time_period")
|
|
224
|
+
|
|
225
|
+
@property
|
|
226
|
+
@pulumi.getter
|
|
227
|
+
def timeframe(self) -> str:
|
|
228
|
+
"""
|
|
229
|
+
The time frame for pulling data for the report. If custom, then a specific time period must be provided.
|
|
230
|
+
"""
|
|
231
|
+
return pulumi.get(self, "timeframe")
|
|
232
|
+
|
|
233
|
+
@property
|
|
234
|
+
@pulumi.getter
|
|
235
|
+
def type(self) -> str:
|
|
236
|
+
"""
|
|
237
|
+
Resource type.
|
|
238
|
+
"""
|
|
239
|
+
return pulumi.get(self, "type")
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
class AwaitableGetViewByScopeResult(GetViewByScopeResult):
|
|
243
|
+
# pylint: disable=using-constant-test
|
|
244
|
+
def __await__(self):
|
|
245
|
+
if False:
|
|
246
|
+
yield self
|
|
247
|
+
return GetViewByScopeResult(
|
|
248
|
+
accumulated=self.accumulated,
|
|
249
|
+
chart=self.chart,
|
|
250
|
+
created_on=self.created_on,
|
|
251
|
+
currency=self.currency,
|
|
252
|
+
data_set=self.data_set,
|
|
253
|
+
date_range=self.date_range,
|
|
254
|
+
display_name=self.display_name,
|
|
255
|
+
e_tag=self.e_tag,
|
|
256
|
+
id=self.id,
|
|
257
|
+
include_monetary_commitment=self.include_monetary_commitment,
|
|
258
|
+
kpis=self.kpis,
|
|
259
|
+
metric=self.metric,
|
|
260
|
+
modified_on=self.modified_on,
|
|
261
|
+
name=self.name,
|
|
262
|
+
pivots=self.pivots,
|
|
263
|
+
scope=self.scope,
|
|
264
|
+
time_period=self.time_period,
|
|
265
|
+
timeframe=self.timeframe,
|
|
266
|
+
type=self.type)
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
def get_view_by_scope(scope: Optional[str] = None,
|
|
270
|
+
view_name: Optional[str] = None,
|
|
271
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetViewByScopeResult:
|
|
272
|
+
"""
|
|
273
|
+
Gets the view for the defined scope by view name.
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
:param str scope: The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope.
|
|
277
|
+
:param str view_name: View name
|
|
278
|
+
"""
|
|
279
|
+
__args__ = dict()
|
|
280
|
+
__args__['scope'] = scope
|
|
281
|
+
__args__['viewName'] = view_name
|
|
282
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
283
|
+
__ret__ = pulumi.runtime.invoke('azure-native:costmanagement/v20240801:getViewByScope', __args__, opts=opts, typ=GetViewByScopeResult).value
|
|
284
|
+
|
|
285
|
+
return AwaitableGetViewByScopeResult(
|
|
286
|
+
accumulated=pulumi.get(__ret__, 'accumulated'),
|
|
287
|
+
chart=pulumi.get(__ret__, 'chart'),
|
|
288
|
+
created_on=pulumi.get(__ret__, 'created_on'),
|
|
289
|
+
currency=pulumi.get(__ret__, 'currency'),
|
|
290
|
+
data_set=pulumi.get(__ret__, 'data_set'),
|
|
291
|
+
date_range=pulumi.get(__ret__, 'date_range'),
|
|
292
|
+
display_name=pulumi.get(__ret__, 'display_name'),
|
|
293
|
+
e_tag=pulumi.get(__ret__, 'e_tag'),
|
|
294
|
+
id=pulumi.get(__ret__, 'id'),
|
|
295
|
+
include_monetary_commitment=pulumi.get(__ret__, 'include_monetary_commitment'),
|
|
296
|
+
kpis=pulumi.get(__ret__, 'kpis'),
|
|
297
|
+
metric=pulumi.get(__ret__, 'metric'),
|
|
298
|
+
modified_on=pulumi.get(__ret__, 'modified_on'),
|
|
299
|
+
name=pulumi.get(__ret__, 'name'),
|
|
300
|
+
pivots=pulumi.get(__ret__, 'pivots'),
|
|
301
|
+
scope=pulumi.get(__ret__, 'scope'),
|
|
302
|
+
time_period=pulumi.get(__ret__, 'time_period'),
|
|
303
|
+
timeframe=pulumi.get(__ret__, 'timeframe'),
|
|
304
|
+
type=pulumi.get(__ret__, 'type'))
|
|
305
|
+
def get_view_by_scope_output(scope: Optional[pulumi.Input[str]] = None,
|
|
306
|
+
view_name: Optional[pulumi.Input[str]] = None,
|
|
307
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetViewByScopeResult]:
|
|
308
|
+
"""
|
|
309
|
+
Gets the view for the defined scope by view name.
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
:param str scope: The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope.
|
|
313
|
+
:param str view_name: View name
|
|
314
|
+
"""
|
|
315
|
+
__args__ = dict()
|
|
316
|
+
__args__['scope'] = scope
|
|
317
|
+
__args__['viewName'] = view_name
|
|
318
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
319
|
+
__ret__ = pulumi.runtime.invoke_output('azure-native:costmanagement/v20240801:getViewByScope', __args__, opts=opts, typ=GetViewByScopeResult)
|
|
320
|
+
return __ret__.apply(lambda __response__: GetViewByScopeResult(
|
|
321
|
+
accumulated=pulumi.get(__response__, 'accumulated'),
|
|
322
|
+
chart=pulumi.get(__response__, 'chart'),
|
|
323
|
+
created_on=pulumi.get(__response__, 'created_on'),
|
|
324
|
+
currency=pulumi.get(__response__, 'currency'),
|
|
325
|
+
data_set=pulumi.get(__response__, 'data_set'),
|
|
326
|
+
date_range=pulumi.get(__response__, 'date_range'),
|
|
327
|
+
display_name=pulumi.get(__response__, 'display_name'),
|
|
328
|
+
e_tag=pulumi.get(__response__, 'e_tag'),
|
|
329
|
+
id=pulumi.get(__response__, 'id'),
|
|
330
|
+
include_monetary_commitment=pulumi.get(__response__, 'include_monetary_commitment'),
|
|
331
|
+
kpis=pulumi.get(__response__, 'kpis'),
|
|
332
|
+
metric=pulumi.get(__response__, 'metric'),
|
|
333
|
+
modified_on=pulumi.get(__response__, 'modified_on'),
|
|
334
|
+
name=pulumi.get(__response__, 'name'),
|
|
335
|
+
pivots=pulumi.get(__response__, 'pivots'),
|
|
336
|
+
scope=pulumi.get(__response__, 'scope'),
|
|
337
|
+
time_period=pulumi.get(__response__, 'time_period'),
|
|
338
|
+
timeframe=pulumi.get(__response__, 'timeframe'),
|
|
339
|
+
type=pulumi.get(__response__, 'type')))
|