...

Source file src/google.golang.org/genproto/googleapis/cloud/billing/budgets/v1/alias.go

Documentation: google.golang.org/genproto/googleapis/cloud/billing/budgets/v1

     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/apiv1/budgetspb".
    19  //
    20  // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1/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/apiv1/budgetspb"
    27  	grpc "google.golang.org/grpc"
    28  )
    29  
    30  // Deprecated: Please use consts in: cloud.google.com/go/billing/budgets/apiv1/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/apiv1/budgetspb
    46  var (
    47  	CalendarPeriod_name                                       = src.CalendarPeriod_name
    48  	CalendarPeriod_value                                      = src.CalendarPeriod_value
    49  	File_google_cloud_billing_budgets_v1_budget_model_proto   = src.File_google_cloud_billing_budgets_v1_budget_model_proto
    50  	File_google_cloud_billing_budgets_v1_budget_service_proto = src.File_google_cloud_billing_budgets_v1_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  // A budget is a plan that describes what you expect to spend on Cloud
    58  // projects, plus the rules to execute as spend is tracked against that plan,
    59  // (for example, send an alert when 90% of the target spend is met). The budget
    60  // time period is configurable, with options such as month (default), quarter,
    61  // year, or custom time period.
    62  //
    63  // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1/budgetspb
    64  type Budget = src.Budget
    65  
    66  // The budgeted amount for each usage period.
    67  //
    68  // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1/budgetspb
    69  type BudgetAmount = src.BudgetAmount
    70  type BudgetAmount_LastPeriodAmount = src.BudgetAmount_LastPeriodAmount
    71  type BudgetAmount_SpecifiedAmount = src.BudgetAmount_SpecifiedAmount
    72  
    73  // BudgetServiceClient is the client API for BudgetService service. For
    74  // semantics around ctx use and closing/ending streaming RPCs, please refer to
    75  // https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
    76  //
    77  // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1/budgetspb
    78  type BudgetServiceClient = src.BudgetServiceClient
    79  
    80  // BudgetServiceServer is the server API for BudgetService service.
    81  //
    82  // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1/budgetspb
    83  type BudgetServiceServer = src.BudgetServiceServer
    84  
    85  // A `CalendarPeriod` represents the abstract concept of a time period that
    86  // has a canonical start. Grammatically, "the start of the current
    87  // `CalendarPeriod`". All calendar times begin at 12 AM US and Canadian Pacific
    88  // Time (UTC-8).
    89  //
    90  // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1/budgetspb
    91  type CalendarPeriod = src.CalendarPeriod
    92  
    93  // Request for CreateBudget
    94  //
    95  // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1/budgetspb
    96  type CreateBudgetRequest = src.CreateBudgetRequest
    97  
    98  // All date times begin at 12 AM US and Canadian Pacific Time (UTC-8).
    99  //
   100  // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1/budgetspb
   101  type CustomPeriod = src.CustomPeriod
   102  
   103  // Request for DeleteBudget
   104  //
   105  // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1/budgetspb
   106  type DeleteBudgetRequest = src.DeleteBudgetRequest
   107  
   108  // A filter for a budget, limiting the scope of the cost to calculate.
   109  //
   110  // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1/budgetspb
   111  type Filter = src.Filter
   112  type Filter_CalendarPeriod = src.Filter_CalendarPeriod
   113  
   114  // Specifies how credits are applied when determining the spend for threshold
   115  // calculations. Budgets track the total cost minus any applicable selected
   116  // credits. [See the documentation for a list of credit
   117  // types](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type).
   118  //
   119  // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1/budgetspb
   120  type Filter_CreditTypesTreatment = src.Filter_CreditTypesTreatment
   121  type Filter_CustomPeriod = src.Filter_CustomPeriod
   122  
   123  // Request for GetBudget
   124  //
   125  // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1/budgetspb
   126  type GetBudgetRequest = src.GetBudgetRequest
   127  
   128  // Describes a budget amount targeted to the last
   129  // [Filter.calendar_period][google.cloud.billing.budgets.v1.Filter.calendar_period]
   130  // spend. At this time, the amount is automatically 100% of the last calendar
   131  // period's spend; that is, there are no other options yet. Future
   132  // configuration options will be described here (for example, configuring a
   133  // percentage of last period's spend). LastPeriodAmount cannot be set for a
   134  // budget configured with a
   135  // [Filter.custom_period][google.cloud.billing.budgets.v1.Filter.custom_period].
   136  //
   137  // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1/budgetspb
   138  type LastPeriodAmount = src.LastPeriodAmount
   139  
   140  // Request for ListBudgets
   141  //
   142  // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1/budgetspb
   143  type ListBudgetsRequest = src.ListBudgetsRequest
   144  
   145  // Response for ListBudgets
   146  //
   147  // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1/budgetspb
   148  type ListBudgetsResponse = src.ListBudgetsResponse
   149  
   150  // NotificationsRule defines notifications that are sent based on budget spend
   151  // and thresholds.
   152  //
   153  // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1/budgetspb
   154  type NotificationsRule = src.NotificationsRule
   155  
   156  // ThresholdRule contains a definition of a threshold which triggers an alert
   157  // (a notification of a threshold being crossed) to be sent when spend goes
   158  // above the specified amount. Alerts are automatically e-mailed to users with
   159  // the Billing Account Administrator role or the Billing Account User role. The
   160  // thresholds here have no effect on notifications sent to anything configured
   161  // under `Budget.all_updates_rule`.
   162  //
   163  // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1/budgetspb
   164  type ThresholdRule = src.ThresholdRule
   165  
   166  // The type of basis used to determine if spend has passed the threshold.
   167  //
   168  // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1/budgetspb
   169  type ThresholdRule_Basis = src.ThresholdRule_Basis
   170  
   171  // UnimplementedBudgetServiceServer can be embedded to have forward compatible
   172  // implementations.
   173  //
   174  // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1/budgetspb
   175  type UnimplementedBudgetServiceServer = src.UnimplementedBudgetServiceServer
   176  
   177  // Request for UpdateBudget
   178  //
   179  // Deprecated: Please use types in: cloud.google.com/go/billing/budgets/apiv1/budgetspb
   180  type UpdateBudgetRequest = src.UpdateBudgetRequest
   181  
   182  // Deprecated: Please use funcs in: cloud.google.com/go/billing/budgets/apiv1/budgetspb
   183  func NewBudgetServiceClient(cc grpc.ClientConnInterface) BudgetServiceClient {
   184  	return src.NewBudgetServiceClient(cc)
   185  }
   186  
   187  // Deprecated: Please use funcs in: cloud.google.com/go/billing/budgets/apiv1/budgetspb
   188  func RegisterBudgetServiceServer(s *grpc.Server, srv BudgetServiceServer) {
   189  	src.RegisterBudgetServiceServer(s, srv)
   190  }
   191  

View as plain text