Skip to content

Commit

Permalink
Regenerate CloudBilling client (#7686)
Browse files Browse the repository at this point in the history
This PR was generated using Autosynth. 🌈


<details><summary>Log from Synthtool</summary>

```
2021-03-24 05:25:12,373 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-cloudbilling
nothing to commit, working tree clean
2021-03-24 05:25:13,989 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpd7nb6yne/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh CloudBilling
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpd7nb6yne/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh CloudBilling
/workspace /workspace
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
Resolving Hex dependencies...
Dependency resolution completed:
Unchanged:
  certifi 2.5.1
  google_api_discovery 0.7.0
  google_gax 0.3.2
  hackney 1.15.2
  idna 6.0.0
  jason 1.2.1
  metrics 1.0.1
  mime 1.3.1
  mimerl 1.2.0
  oauth2 0.9.4
  parse_trans 3.3.0
  poison 3.1.0
  ssl_verify_fun 1.1.5
  temp 0.4.7
  tesla 1.3.3
  unicode_util_compat 0.4.1
* Getting google_api_discovery (Hex package)
* Getting tesla (Hex package)
* Getting oauth2 (Hex package)
* Getting temp (Hex package)
* Getting jason (Hex package)
* Getting poison (Hex package)
* Getting hackney (Hex package)
* Getting certifi (Hex package)
* Getting idna (Hex package)
* Getting metrics (Hex package)
* Getting mimerl (Hex package)
* Getting ssl_verify_fun (Hex package)
* Getting unicode_util_compat (Hex package)
* Getting parse_trans (Hex package)
* Getting mime (Hex package)
* Getting google_gax (Hex package)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> temp
Compiling 3 files (.ex)
Generated temp app
===> Compiling parse_trans
===> Compiling mimerl
===> Compiling metrics
===> Compiling unicode_util_compat
===> Compiling idna
==> jason
Compiling 8 files (.ex)
Generated jason app
warning: String.strip/1 is deprecated. Use String.trim/1 instead
  /workspace/deps/poison/mix.exs:4

==> poison
Compiling 4 files (.ex)
warning: Integer.to_char_list/2 is deprecated. Use Integer.to_charlist/2 instead
  lib/poison/encoder.ex:173

Generated poison app
==> ssl_verify_fun
Compiling 7 files (.erl)
Generated ssl_verify_fun app
===> Compiling certifi
===> Compiling hackney
==> oauth2
Compiling 13 files (.ex)
Generated oauth2 app
==> mime
Compiling 2 files (.ex)
Generated mime app
==> tesla
Compiling 26 files (.ex)
Generated tesla app
==> google_gax
Compiling 5 files (.ex)
Generated google_gax app
==> google_api_discovery
Compiling 21 files (.ex)
Generated google_api_discovery app
==> google_apis
Compiling 28 files (.ex)
Generated google_apis app

12:25:41.440 [info]  FETCHING: https://cloudbilling.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1

12:25:41.735 [info]  FETCHING: https://cloudbilling.googleapis.com/$discovery/rest?version=v1

12:25:41.942 [info]  FOUND: https://cloudbilling.googleapis.com/$discovery/rest?version=v1
Revision check: old=20201017, new=20210322, generating=true
Creating leading directories
Writing AggregationInfo to clients/cloud_billing/lib/google_api/cloud_billing/v1/model/aggregation_info.ex.
Writing AuditConfig to clients/cloud_billing/lib/google_api/cloud_billing/v1/model/audit_config.ex.
Writing AuditLogConfig to clients/cloud_billing/lib/google_api/cloud_billing/v1/model/audit_log_config.ex.
Writing BillingAccount to clients/cloud_billing/lib/google_api/cloud_billing/v1/model/billing_account.ex.
Writing Binding to clients/cloud_billing/lib/google_api/cloud_billing/v1/model/binding.ex.
Writing Category to clients/cloud_billing/lib/google_api/cloud_billing/v1/model/category.ex.
Writing Expr to clients/cloud_billing/lib/google_api/cloud_billing/v1/model/expr.ex.
Writing GeoTaxonomy to clients/cloud_billing/lib/google_api/cloud_billing/v1/model/geo_taxonomy.ex.
Writing ListBillingAccountsResponse to clients/cloud_billing/lib/google_api/cloud_billing/v1/model/list_billing_accounts_response.ex.
Writing ListProjectBillingInfoResponse to clients/cloud_billing/lib/google_api/cloud_billing/v1/model/list_project_billing_info_response.ex.
Writing ListServicesResponse to clients/cloud_billing/lib/google_api/cloud_billing/v1/model/list_services_response.ex.
Writing ListSkusResponse to clients/cloud_billing/lib/google_api/cloud_billing/v1/model/list_skus_response.ex.
Writing Money to clients/cloud_billing/lib/google_api/cloud_billing/v1/model/money.ex.
Writing Policy to clients/cloud_billing/lib/google_api/cloud_billing/v1/model/policy.ex.
Writing PricingExpression to clients/cloud_billing/lib/google_api/cloud_billing/v1/model/pricing_expression.ex.
Writing PricingInfo to clients/cloud_billing/lib/google_api/cloud_billing/v1/model/pricing_info.ex.
Writing ProjectBillingInfo to clients/cloud_billing/lib/google_api/cloud_billing/v1/model/project_billing_info.ex.
Writing Service to clients/cloud_billing/lib/google_api/cloud_billing/v1/model/service.ex.
Writing SetIamPolicyRequest to clients/cloud_billing/lib/google_api/cloud_billing/v1/model/set_iam_policy_request.ex.
Writing Sku to clients/cloud_billing/lib/google_api/cloud_billing/v1/model/sku.ex.
Writing TestIamPermissionsRequest to clients/cloud_billing/lib/google_api/cloud_billing/v1/model/test_iam_permissions_request.ex.
Writing TestIamPermissionsResponse to clients/cloud_billing/lib/google_api/cloud_billing/v1/model/test_iam_permissions_response.ex.
Writing TierRate to clients/cloud_billing/lib/google_api/cloud_billing/v1/model/tier_rate.ex.
Writing BillingAccounts to clients/cloud_billing/lib/google_api/cloud_billing/v1/api/billing_accounts.ex.
Writing Projects to clients/cloud_billing/lib/google_api/cloud_billing/v1/api/projects.ex.
Writing Services to clients/cloud_billing/lib/google_api/cloud_billing/v1/api/services.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

12:25:43.515 [info]  Bumping patch
fixing file permissions
2021-03-24 05:25:46,080 synthtool [DEBUG] > Wrote metadata to clients/cloud_billing/synth.metadata.
DEBUG:synthtool:Wrote metadata to clients/cloud_billing/synth.metadata.

```
</details>

Full log will be available here:
https://source.cloud.google.com/results/invocations/6c5d3502-11ad-48c1-a798-138f92ada606/targets

- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)
  • Loading branch information
yoshi-automation authored Mar 24, 2021
1 parent 9b6f621 commit 0af2386
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ defmodule GoogleApi.CloudBilling.V1.Api.BillingAccounts do
@library_version Mix.Project.config() |> Keyword.get(:version, "")

@doc """
Creates a billing account. This method can only be used to create [billing subaccounts](https://cloud.google.com/billing/docs/concepts) by Google Cloud resellers. When creating a subaccount, the current authenticated user must have the `billing.accounts.update` IAM permission on the master account, which is typically given to billing account [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). This method will return an error if the master account has not been provisioned as a reseller account.
This method creates [billing subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts). Google Cloud resellers should use the Channel Services APIs, [accounts.customers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create) and [accounts.customers.entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create). When creating a subaccount, the current authenticated user must have the `billing.accounts.update` IAM permission on the parent account, which is typically given to billing account [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). This method will return an error if the parent account has not been provisioned as a reseller account.
## Parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ defmodule GoogleApi.CloudBilling.V1.Connection do
# View your Google Cloud Platform billing accounts
"https://www.googleapis.com/auth/cloud-billing.readonly",

# View and manage your data across Google Cloud Platform services
# See, edit, configure, and delete your Google Cloud Platform data
"https://www.googleapis.com/auth/cloud-platform"
],
otp_app: :google_api_cloud_billing,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.CloudBilling.V1 do
API client metadata for GoogleApi.CloudBilling.V1.
"""

@discovery_revision "20201017"
@discovery_revision "20210322"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ defmodule GoogleApi.CloudBilling.V1.Model.BillingAccount do
## Attributes
* `displayName` (*type:* `String.t`, *default:* `nil`) - The display name given to the billing account, such as `My Billing Account`. This name is displayed in the Google Cloud Console.
* `masterBillingAccount` (*type:* `String.t`, *default:* `nil`) - If this account is a [subaccount](https://cloud.google.com/billing/docs/concepts), then this will be the resource name of the master billing account that it is being resold through. Otherwise this will be empty.
* `masterBillingAccount` (*type:* `String.t`, *default:* `nil`) - If this account is a [subaccount](https://cloud.google.com/billing/docs/concepts), then this will be the resource name of the parent billing account that it is being resold through. Otherwise this will be empty.
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the billing account. The resource name has the form `billingAccounts/{billing_account_id}`. For example, `billingAccounts/012345-567890-ABCDEF` would be the resource name for billing account `012345-567890-ABCDEF`.
* `open` (*type:* `boolean()`, *default:* `nil`) - Output only. True if the billing account is open, and will therefore be charged for any usage on associated projects. False if the billing account is closed, and therefore projects associated with it will be unable to use paid services.
"""
Expand Down
2 changes: 1 addition & 1 deletion clients/cloud_billing/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.CloudBilling.Mixfile do
use Mix.Project

@version "0.23.0"
@version "0.23.1"

def project() do
[
Expand Down
2 changes: 1 addition & 1 deletion clients/cloud_billing/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/elixir-google-api.git",
"sha": "809f8ef24b747a3a39b01ef329390379aacf4fed"
"sha": "9b6f6214236cf1fb1429f5d125c826b3dccbb4e4"
}
}
]
Expand Down

0 comments on commit 0af2386

Please sign in to comment.