Debian Codegraph @

googleapis/cloud/billing/budgets/v1beta1/alias.go

raw
1 // Copyright 2022 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by aliasgen. DO NOT EDIT.
16
17 // Package budgets aliases all exported identifiers in package
18 // "cloud.google.com/go/billing/budgets/apiv1beta1/budgetspb".
19 //
20 // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1beta1/budgetspb.
21 // Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md
22 // for more details.
23 package budgets
24
25 import (
26 src "cloud.google.com/go/billing/budgets/apiv1beta1/budgetspb"
27 grpc "google.golang.org/grpc"
28 )
29
30 // Deprecated: Please use consts in: cloud.google.com/go/billing/budgets/apiv1beta1/budgetspb
31 const (
32 CalendarPeriod_CALENDAR_PERIOD_UNSPECIFIED = src.CalendarPeriod_CALENDAR_PERIOD_UNSPECIFIED
33 CalendarPeriod_MONTH = src.CalendarPeriod_MONTH
34 CalendarPeriod_QUARTER = src.CalendarPeriod_QUARTER
35 CalendarPeriod_YEAR = src.CalendarPeriod_YEAR
36 Filter_CREDIT_TYPES_TREATMENT_UNSPECIFIED = src.Filter_CREDIT_TYPES_TREATMENT_UNSPECIFIED
37 Filter_EXCLUDE_ALL_CREDITS = src.Filter_EXCLUDE_ALL_CREDITS
38 Filter_INCLUDE_ALL_CREDITS = src.Filter_INCLUDE_ALL_CREDITS
39 Filter_INCLUDE_SPECIFIED_CREDITS = src.Filter_INCLUDE_SPECIFIED_CREDITS
40 ThresholdRule_BASIS_UNSPECIFIED = src.ThresholdRule_BASIS_UNSPECIFIED
41 ThresholdRule_CURRENT_SPEND = src.ThresholdRule_CURRENT_SPEND
42 ThresholdRule_FORECASTED_SPEND = src.ThresholdRule_FORECASTED_SPEND
43 )
44
45 // Deprecated: Please use vars in: cloud.google.com/go/billing/budgets/apiv1beta1/budgetspb
46 var (
47 CalendarPeriod_name = src.CalendarPeriod_name
48 CalendarPeriod_value = src.CalendarPeriod_value
49 File_google_cloud_billing_budgets_v1beta1_budget_model_proto = src.File_google_cloud_billing_budgets_v1beta1_budget_model_proto
50 File_google_cloud_billing_budgets_v1beta1_budget_service_proto = src.File_google_cloud_billing_budgets_v1beta1_budget_service_proto
51 Filter_CreditTypesTreatment_name = src.Filter_CreditTypesTreatment_name
52 Filter_CreditTypesTreatment_value = src.Filter_CreditTypesTreatment_value
53 ThresholdRule_Basis_name = src.ThresholdRule_Basis_name
54 ThresholdRule_Basis_value = src.ThresholdRule_Basis_value
55 )
56
57 // AllUpdatesRule defines notifications that are sent based on budget spend
58 // and thresholds.
59 //
60 // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1beta1/budgetspb
61 type AllUpdatesRule = src.AllUpdatesRule
62
63 // A budget is a plan that describes what you expect to spend on Cloud
64 // projects, plus the rules to execute as spend is tracked against that plan,
65 // (for example, send an alert when 90% of the target spend is met). The budget
66 // time period is configurable, with options such as month (default), quarter,
67 // year, or custom time period.
68 //
69 // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1beta1/budgetspb
70 type Budget = src.Budget
71
72 // The budgeted amount for each usage period.
73 //
74 // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1beta1/budgetspb
75 type BudgetAmount = src.BudgetAmount
76 type BudgetAmount_LastPeriodAmount = src.BudgetAmount_LastPeriodAmount
77 type BudgetAmount_SpecifiedAmount = src.BudgetAmount_SpecifiedAmount
78
79 // BudgetServiceClient is the client API for BudgetService service. For
80 // semantics around ctx use and closing/ending streaming RPCs, please refer to
81 // https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
82 //
83 // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1beta1/budgetspb
84 type BudgetServiceClient = src.BudgetServiceClient
85
86 // BudgetServiceServer is the server API for BudgetService service.
87 //
88 // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1beta1/budgetspb
89 type BudgetServiceServer = src.BudgetServiceServer
90
91 // A `CalendarPeriod` represents the abstract concept of a time period that
92 // has a canonical start. Grammatically, "the start of the current
93 // `CalendarPeriod`". All calendar times begin at 12 AM US and Canadian Pacific
94 // Time (UTC-8).
95 //
96 // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1beta1/budgetspb
97 type CalendarPeriod = src.CalendarPeriod
98
99 // Request for CreateBudget
100 //
101 // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1beta1/budgetspb
102 type CreateBudgetRequest = src.CreateBudgetRequest
103
104 // All date times begin at 12 AM US and Canadian Pacific Time (UTC-8).
105 //
106 // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1beta1/budgetspb
107 type CustomPeriod = src.CustomPeriod
108
109 // Request for DeleteBudget
110 //
111 // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1beta1/budgetspb
112 type DeleteBudgetRequest = src.DeleteBudgetRequest
113
114 // A filter for a budget, limiting the scope of the cost to calculate.
115 //
116 // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1beta1/budgetspb
117 type Filter = src.Filter
118 type Filter_CalendarPeriod = src.Filter_CalendarPeriod
119
120 // Specifies how credits are applied when determining the spend for threshold
121 // calculations. Budgets track the total cost minus any applicable selected
122 // credits. [See the documentation for a list of credit
123 // types](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type).
124 //
125 // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1beta1/budgetspb
126 type Filter_CreditTypesTreatment = src.Filter_CreditTypesTreatment
127 type Filter_CustomPeriod = src.Filter_CustomPeriod
128
129 // Request for GetBudget
130 //
131 // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1beta1/budgetspb
132 type GetBudgetRequest = src.GetBudgetRequest
133
134 // Describes a budget amount targeted to the last
135 // [Filter.calendar_period][google.cloud.billing.budgets.v1beta1.Filter.calendar_period]
136 // spend. At this time, the amount is automatically 100% of the last calendar
137 // period's spend; that is, there are no other options yet. Future
138 // configuration options will be described here (for example, configuring a
139 // percentage of last period's spend). LastPeriodAmount cannot be set for a
140 // budget configured with a
141 // [Filter.custom_period][google.cloud.billing.budgets.v1beta1.Filter.custom_period].
142 //
143 // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1beta1/budgetspb
144 type LastPeriodAmount = src.LastPeriodAmount
145
146 // Request for ListBudgets
147 //
148 // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1beta1/budgetspb
149 type ListBudgetsRequest = src.ListBudgetsRequest
150
151 // Response for ListBudgets
152 //
153 // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1beta1/budgetspb
154 type ListBudgetsResponse = src.ListBudgetsResponse
155
156 // ThresholdRule contains the definition of a threshold. Threshold rules
157 // define the triggering events used to generate a budget notification email.
158 // When a threshold is crossed (spend exceeds the specified percentages of the
159 // budget), budget alert emails are sent to the email recipients you specify in
160 // the [NotificationsRule](#notificationsrule). Threshold rules also affect the
161 // fields included in the [JSON data
162 // object](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format)
163 // sent to a Pub/Sub topic. Threshold rules are _required_ if using email
164 // notifications. Threshold rules are _optional_ if only setting a
165 // [`pubsubTopic` NotificationsRule](#NotificationsRule), unless you want your
166 // JSON data object to include data about the thresholds you set. For more
167 // information, see [set budget threshold rules and
168 // actions](https://cloud.google.com/billing/docs/how-to/budgets#budget-actions).
169 //
170 // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1beta1/budgetspb
171 type ThresholdRule = src.ThresholdRule
172
173 // The type of basis used to determine if spend has passed the threshold.
174 //
175 // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1beta1/budgetspb
176 type ThresholdRule_Basis = src.ThresholdRule_Basis
177
178 // UnimplementedBudgetServiceServer can be embedded to have forward compatible
179 // implementations.
180 //
181 // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1beta1/budgetspb
182 type UnimplementedBudgetServiceServer = src.UnimplementedBudgetServiceServer
183
184 // Request for UpdateBudget
185 //
186 // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1beta1/budgetspb
187 type UpdateBudgetRequest = src.UpdateBudgetRequest
188
189 // Deprecated: Please use funcs in: cloud.google.com/go/billing/budgets/apiv1beta1/budgetspb
190 func NewBudgetServiceClient(cc grpc.ClientConnInterface) BudgetServiceClient {
191 return src.NewBudgetServiceClient(cc)
192 }
193
194 // Deprecated: Please use funcs in: cloud.google.com/go/billing/budgets/apiv1beta1/budgetspb
195 func RegisterBudgetServiceServer(s *grpc.Server, srv BudgetServiceServer) {
196 src.RegisterBudgetServiceServer(s, srv)
197 }