mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2025-12-31 08:33:44 +01:00
1012 lines
48 KiB
JSON
1012 lines
48 KiB
JSON
{
|
|
"id": "cloudbilling:v1",
|
|
"documentationLink": "https://cloud.google.com/billing/",
|
|
"revision": "20180919",
|
|
"discoveryVersion": "v1",
|
|
"schemas": {
|
|
"TestIamPermissionsRequest": {
|
|
"description": "Request message for `TestIamPermissions` method.",
|
|
"type": "object",
|
|
"properties": {
|
|
"permissions": {
|
|
"description": "The set of permissions to check for the `resource`. Permissions with\nwildcards (such as '*' or 'storage.*') are not allowed. For more\ninformation see\n[IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"id": "TestIamPermissionsRequest"
|
|
},
|
|
"Sku": {
|
|
"properties": {
|
|
"serviceRegions": {
|
|
"description": "List of service regions this SKU is offered at.\nExample: \"asia-east1\"\nService regions can be found at https://cloud.google.com/about/locations/",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"name": {
|
|
"description": "The resource name for the SKU.\nExample: \"services/DA34-426B-A397/skus/AA95-CD31-42FE\"",
|
|
"type": "string"
|
|
},
|
|
"pricingInfo": {
|
|
"description": "A timeline of pricing info for this SKU in chronological order.",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "PricingInfo"
|
|
}
|
|
},
|
|
"category": {
|
|
"$ref": "Category",
|
|
"description": "The category hierarchy of this SKU, purely for organizational purpose."
|
|
},
|
|
"skuId": {
|
|
"description": "The identifier for the SKU.\nExample: \"AA95-CD31-42FE\"",
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"description": "A human readable description of the SKU, has a maximum length of 256\ncharacters.",
|
|
"type": "string"
|
|
},
|
|
"serviceProviderName": {
|
|
"description": "Identifies the service provider.\nThis is 'Google' for first party services in Google Cloud Platform.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": "Sku",
|
|
"description": "Encapsulates a single SKU in Google Cloud Platform",
|
|
"type": "object"
|
|
},
|
|
"Policy": {
|
|
"description": "Defines an Identity and Access Management (IAM) policy. It is used to\nspecify access control policies for Cloud Platform resources.\n\n\nA `Policy` consists of a list of `bindings`. A `binding` binds a list of\n`members` to a `role`, where the members can be user accounts, Google groups,\nGoogle domains, and service accounts. A `role` is a named list of permissions\ndefined by IAM.\n\n**JSON Example**\n\n {\n \"bindings\": [\n {\n \"role\": \"roles/owner\",\n \"members\": [\n \"user:mike@example.com\",\n \"group:admins@example.com\",\n \"domain:google.com\",\n \"serviceAccount:my-other-app@appspot.gserviceaccount.com\"\n ]\n },\n {\n \"role\": \"roles/viewer\",\n \"members\": [\"user:sean@example.com\"]\n }\n ]\n }\n\n**YAML Example**\n\n bindings:\n - members:\n - user:mike@example.com\n - group:admins@example.com\n - domain:google.com\n - serviceAccount:my-other-app@appspot.gserviceaccount.com\n role: roles/owner\n - members:\n - user:sean@example.com\n role: roles/viewer\n\n\nFor a description of IAM and its features, see the\n[IAM developer's guide](https://cloud.google.com/iam/docs).",
|
|
"type": "object",
|
|
"properties": {
|
|
"etag": {
|
|
"description": "`etag` is used for optimistic concurrency control as a way to help\nprevent simultaneous updates of a policy from overwriting each other.\nIt is strongly suggested that systems make use of the `etag` in the\nread-modify-write cycle to perform policy updates in order to avoid race\nconditions: An `etag` is returned in the response to `getIamPolicy`, and\nsystems are expected to put that etag in the request to `setIamPolicy` to\nensure that their change will be applied to the same version of the policy.\n\nIf no `etag` is provided in the call to `setIamPolicy`, then the existing\npolicy is overwritten blindly.",
|
|
"format": "byte",
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"description": "Deprecated.",
|
|
"format": "int32",
|
|
"type": "integer"
|
|
},
|
|
"auditConfigs": {
|
|
"description": "Specifies cloud audit logging configuration for this policy.",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "AuditConfig"
|
|
}
|
|
},
|
|
"bindings": {
|
|
"description": "Associates a list of `members` to a `role`.\n`bindings` with no members will result in an error.",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "Binding"
|
|
}
|
|
}
|
|
},
|
|
"id": "Policy"
|
|
},
|
|
"Category": {
|
|
"description": "Represents the category hierarchy of a SKU.",
|
|
"type": "object",
|
|
"properties": {
|
|
"resourceFamily": {
|
|
"description": "The type of product the SKU refers to.\nExample: \"Compute\", \"Storage\", \"Network\", \"ApplicationServices\" etc.",
|
|
"type": "string"
|
|
},
|
|
"resourceGroup": {
|
|
"description": "A group classification for related SKUs.\nExample: \"RAM\", \"GPU\", \"Prediction\", \"Ops\", \"GoogleEgress\" etc.",
|
|
"type": "string"
|
|
},
|
|
"serviceDisplayName": {
|
|
"description": "The display name of the service this SKU belongs to.",
|
|
"type": "string"
|
|
},
|
|
"usageType": {
|
|
"description": "Represents how the SKU is consumed.\nExample: \"OnDemand\", \"Preemptible\", \"Commit1Mo\", \"Commit1Yr\" etc.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": "Category"
|
|
},
|
|
"AuditConfig": {
|
|
"description": "Specifies the audit configuration for a service.\nThe configuration determines which permission types are logged, and what\nidentities, if any, are exempted from logging.\nAn AuditConfig must have one or more AuditLogConfigs.\n\nIf there are AuditConfigs for both `allServices` and a specific service,\nthe union of the two AuditConfigs is used for that service: the log_types\nspecified in each AuditConfig are enabled, and the exempted_members in each\nAuditLogConfig are exempted.\n\nExample Policy with multiple AuditConfigs:\n\n {\n \"audit_configs\": [\n {\n \"service\": \"allServices\"\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n \"exempted_members\": [\n \"user:foo@gmail.com\"\n ]\n },\n {\n \"log_type\": \"DATA_WRITE\",\n },\n {\n \"log_type\": \"ADMIN_READ\",\n }\n ]\n },\n {\n \"service\": \"fooservice.googleapis.com\"\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n },\n {\n \"log_type\": \"DATA_WRITE\",\n \"exempted_members\": [\n \"user:bar@gmail.com\"\n ]\n }\n ]\n }\n ]\n }\n\nFor fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ\nlogging. It also exempts foo@gmail.com from DATA_READ logging, and\nbar@gmail.com from DATA_WRITE logging.",
|
|
"type": "object",
|
|
"properties": {
|
|
"service": {
|
|
"description": "Specifies a service that will be enabled for audit logging.\nFor example, `storage.googleapis.com`, `cloudsql.googleapis.com`.\n`allServices` is a special value that covers all services.",
|
|
"type": "string"
|
|
},
|
|
"auditLogConfigs": {
|
|
"description": "The configuration for logging of each type of permission.",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "AuditLogConfig"
|
|
}
|
|
}
|
|
},
|
|
"id": "AuditConfig"
|
|
},
|
|
"ListSkusResponse": {
|
|
"properties": {
|
|
"skus": {
|
|
"description": "The list of public SKUs of the given service.",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "Sku"
|
|
}
|
|
},
|
|
"nextPageToken": {
|
|
"description": "A token to retrieve the next page of results. To retrieve the next page,\ncall `ListSkus` again with the `page_token` field set to this\nvalue. This field is empty if there are no more results to retrieve.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": "ListSkusResponse",
|
|
"description": "Response message for `ListSkus`.",
|
|
"type": "object"
|
|
},
|
|
"PricingInfo": {
|
|
"description": "Represents the pricing information for a SKU at a single point of time.",
|
|
"type": "object",
|
|
"properties": {
|
|
"effectiveTime": {
|
|
"description": "The timestamp from which this pricing was effective within the requested\ntime range. This is guaranteed to be greater than or equal to the\nstart_time field in the request and less than the end_time field in the\nrequest. If a time range was not specified in the request this field will\nbe equivalent to a time within the last 12 hours, indicating the latest\npricing info.",
|
|
"format": "google-datetime",
|
|
"type": "string"
|
|
},
|
|
"currencyConversionRate": {
|
|
"description": "Conversion rate used for currency conversion, from USD to the currency\nspecified in the request. This includes any surcharge collected for billing\nin non USD currency. If a currency is not specified in the request this\ndefaults to 1.0.\nExample: USD * currency_conversion_rate = JPY",
|
|
"format": "double",
|
|
"type": "number"
|
|
},
|
|
"pricingExpression": {
|
|
"$ref": "PricingExpression",
|
|
"description": "Expresses the pricing formula. See `PricingExpression` for an example."
|
|
},
|
|
"aggregationInfo": {
|
|
"$ref": "AggregationInfo",
|
|
"description": "Aggregation Info. This can be left unspecified if the pricing expression\ndoesn't require aggregation."
|
|
},
|
|
"summary": {
|
|
"description": "An optional human readable summary of the pricing information, has a\nmaximum length of 256 characters.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": "PricingInfo"
|
|
},
|
|
"ListProjectBillingInfoResponse": {
|
|
"properties": {
|
|
"nextPageToken": {
|
|
"description": "A token to retrieve the next page of results. To retrieve the next page,\ncall `ListProjectBillingInfo` again with the `page_token` field set to this\nvalue. This field is empty if there are no more results to retrieve.",
|
|
"type": "string"
|
|
},
|
|
"projectBillingInfo": {
|
|
"description": "A list of `ProjectBillingInfo` resources representing the projects\nassociated with the billing account.",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "ProjectBillingInfo"
|
|
}
|
|
}
|
|
},
|
|
"id": "ListProjectBillingInfoResponse",
|
|
"description": "Request message for `ListProjectBillingInfoResponse`.",
|
|
"type": "object"
|
|
},
|
|
"SetIamPolicyRequest": {
|
|
"description": "Request message for `SetIamPolicy` method.",
|
|
"type": "object",
|
|
"properties": {
|
|
"updateMask": {
|
|
"description": "OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only\nthe fields in the mask will be modified. If no mask is provided, the\nfollowing default mask is used:\npaths: \"bindings, etag\"\nThis field is only used by Cloud IAM.",
|
|
"format": "google-fieldmask",
|
|
"type": "string"
|
|
},
|
|
"policy": {
|
|
"$ref": "Policy",
|
|
"description": "REQUIRED: The complete policy to be applied to the `resource`. The size of\nthe policy is limited to a few 10s of KB. An empty policy is a\nvalid policy but certain Cloud Platform services (such as Projects)\nmight reject them."
|
|
}
|
|
},
|
|
"id": "SetIamPolicyRequest"
|
|
},
|
|
"PricingExpression": {
|
|
"properties": {
|
|
"baseUnit": {
|
|
"description": "The base unit for the SKU which is the unit used in usage exports.\nExample: \"By\"",
|
|
"type": "string"
|
|
},
|
|
"baseUnitDescription": {
|
|
"description": "The base unit in human readable form.\nExample: \"byte\".",
|
|
"type": "string"
|
|
},
|
|
"tieredRates": {
|
|
"description": "The list of tiered rates for this pricing. The total cost is computed by\napplying each of the tiered rates on usage. This repeated list is sorted\nby ascending order of start_usage_amount.",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "TierRate"
|
|
}
|
|
},
|
|
"usageUnit": {
|
|
"description": "The short hand for unit of usage this pricing is specified in.\nExample: usage_unit of \"GiBy\" means that usage is specified in \"Gibi Byte\".",
|
|
"type": "string"
|
|
},
|
|
"baseUnitConversionFactor": {
|
|
"description": "Conversion factor for converting from price per usage_unit to price per\nbase_unit, and start_usage_amount to start_usage_amount in base_unit.\nunit_price / base_unit_conversion_factor = price per base_unit.\nstart_usage_amount * base_unit_conversion_factor = start_usage_amount in\nbase_unit.",
|
|
"format": "double",
|
|
"type": "number"
|
|
},
|
|
"usageUnitDescription": {
|
|
"description": "The unit of usage in human readable form.\nExample: \"gibi byte\".",
|
|
"type": "string"
|
|
},
|
|
"displayQuantity": {
|
|
"description": "The recommended quantity of units for displaying pricing info. When\ndisplaying pricing info it is recommended to display:\n(unit_price * display_quantity) per display_quantity usage_unit.\nThis field does not affect the pricing formula and is for display purposes\nonly.\nExample: If the unit_price is \"0.0001 USD\", the usage_unit is \"GB\" and\nthe display_quantity is \"1000\" then the recommended way of displaying the\npricing info is \"0.10 USD per 1000 GB\"",
|
|
"format": "double",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"id": "PricingExpression",
|
|
"description": "Expresses a mathematical pricing formula. For Example:-\n\n`usage_unit: GBy`\n`tiered_rates:`\n `[start_usage_amount: 20, unit_price: $10]`\n `[start_usage_amount: 100, unit_price: $5]`\n\nThe above expresses a pricing formula where the first 20GB is free, the\nnext 80GB is priced at $10 per GB followed by $5 per GB for additional\nusage.",
|
|
"type": "object"
|
|
},
|
|
"TierRate": {
|
|
"description": "The price rate indicating starting usage and its corresponding price.",
|
|
"type": "object",
|
|
"properties": {
|
|
"unitPrice": {
|
|
"$ref": "Money",
|
|
"description": "The price per unit of usage.\nExample: unit_price of amount $10 indicates that each unit will cost $10."
|
|
},
|
|
"startUsageAmount": {
|
|
"description": "Usage is priced at this rate only after this amount.\nExample: start_usage_amount of 10 indicates that the usage will be priced\nat the unit_price after the first 10 usage_units.",
|
|
"format": "double",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"id": "TierRate"
|
|
},
|
|
"Binding": {
|
|
"description": "Associates `members` with a `role`.",
|
|
"type": "object",
|
|
"properties": {
|
|
"condition": {
|
|
"$ref": "Expr",
|
|
"description": "Unimplemented. The condition that is associated with this binding.\nNOTE: an unsatisfied condition will not allow user access via current\nbinding. Different bindings, including their conditions, are examined\nindependently."
|
|
},
|
|
"members": {
|
|
"description": "Specifies the identities requesting access for a Cloud Platform resource.\n`members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone\n who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google\n account. For example, `alice@gmail.com` .\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service\n account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group.\n For example, `admins@example.com`.\n\n\n* `domain:{domain}`: A Google Apps domain name that represents all the\n users of that domain. For example, `google.com` or `example.com`.\n\n",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"role": {
|
|
"description": "Role that is assigned to `members`.\nFor example, `roles/viewer`, `roles/editor`, or `roles/owner`.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": "Binding"
|
|
},
|
|
"Expr": {
|
|
"properties": {
|
|
"title": {
|
|
"description": "An optional title for the expression, i.e. a short string describing\nits purpose. This can be used e.g. in UIs which allow to enter the\nexpression.",
|
|
"type": "string"
|
|
},
|
|
"location": {
|
|
"description": "An optional string indicating the location of the expression for error\nreporting, e.g. a file name and a position in the file.",
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"description": "An optional description of the expression. This is a longer text which\ndescribes the expression, e.g. when hovered over it in a UI.",
|
|
"type": "string"
|
|
},
|
|
"expression": {
|
|
"description": "Textual representation of an expression in\nCommon Expression Language syntax.\n\nThe application context of the containing message determines which\nwell-known feature set of CEL is supported.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": "Expr",
|
|
"description": "Represents an expression text. Example:\n\n title: \"User account presence\"\n description: \"Determines whether the request has a user account\"\n expression: \"size(request.user) \u003e 0\"",
|
|
"type": "object"
|
|
},
|
|
"ListServicesResponse": {
|
|
"description": "Response message for `ListServices`.",
|
|
"type": "object",
|
|
"properties": {
|
|
"services": {
|
|
"description": "A list of services.",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "Service"
|
|
}
|
|
},
|
|
"nextPageToken": {
|
|
"description": "A token to retrieve the next page of results. To retrieve the next page,\ncall `ListServices` again with the `page_token` field set to this\nvalue. This field is empty if there are no more results to retrieve.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": "ListServicesResponse"
|
|
},
|
|
"ListBillingAccountsResponse": {
|
|
"properties": {
|
|
"billingAccounts": {
|
|
"description": "A list of billing accounts.",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "BillingAccount"
|
|
}
|
|
},
|
|
"nextPageToken": {
|
|
"description": "A token to retrieve the next page of results. To retrieve the next page,\ncall `ListBillingAccounts` again with the `page_token` field set to this\nvalue. This field is empty if there are no more results to retrieve.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": "ListBillingAccountsResponse",
|
|
"description": "Response message for `ListBillingAccounts`.",
|
|
"type": "object"
|
|
},
|
|
"AggregationInfo": {
|
|
"description": "Represents the aggregation level and interval for pricing of a single SKU.",
|
|
"type": "object",
|
|
"properties": {
|
|
"aggregationLevel": {
|
|
"enum": [
|
|
"AGGREGATION_LEVEL_UNSPECIFIED",
|
|
"ACCOUNT",
|
|
"PROJECT"
|
|
],
|
|
"type": "string",
|
|
"enumDescriptions": [
|
|
"",
|
|
"",
|
|
""
|
|
]
|
|
},
|
|
"aggregationInterval": {
|
|
"enum": [
|
|
"AGGREGATION_INTERVAL_UNSPECIFIED",
|
|
"DAILY",
|
|
"MONTHLY"
|
|
],
|
|
"type": "string",
|
|
"enumDescriptions": [
|
|
"",
|
|
"",
|
|
""
|
|
]
|
|
},
|
|
"aggregationCount": {
|
|
"description": "The number of intervals to aggregate over.\nExample: If aggregation_level is \"DAILY\" and aggregation_count is 14,\naggregation will be over 14 days.",
|
|
"format": "int32",
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"id": "AggregationInfo"
|
|
},
|
|
"Service": {
|
|
"description": "Encapsulates a single service in Google Cloud Platform.",
|
|
"type": "object",
|
|
"properties": {
|
|
"serviceId": {
|
|
"description": "The identifier for the service.\nExample: \"DA34-426B-A397\"",
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "The resource name for the service.\nExample: \"services/DA34-426B-A397\"",
|
|
"type": "string"
|
|
},
|
|
"displayName": {
|
|
"description": "A human readable display name for this service.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": "Service"
|
|
},
|
|
"TestIamPermissionsResponse": {
|
|
"properties": {
|
|
"permissions": {
|
|
"description": "A subset of `TestPermissionsRequest.permissions` that the caller is\nallowed.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"id": "TestIamPermissionsResponse",
|
|
"description": "Response message for `TestIamPermissions` method.",
|
|
"type": "object"
|
|
},
|
|
"AuditLogConfig": {
|
|
"description": "Provides the configuration for logging a type of permissions.\nExample:\n\n {\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n \"exempted_members\": [\n \"user:foo@gmail.com\"\n ]\n },\n {\n \"log_type\": \"DATA_WRITE\",\n }\n ]\n }\n\nThis enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting\nfoo@gmail.com from DATA_READ logging.",
|
|
"type": "object",
|
|
"properties": {
|
|
"exemptedMembers": {
|
|
"description": "Specifies the identities that do not cause logging for this type of\npermission.\nFollows the same format of Binding.members.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"logType": {
|
|
"enum": [
|
|
"LOG_TYPE_UNSPECIFIED",
|
|
"ADMIN_READ",
|
|
"DATA_WRITE",
|
|
"DATA_READ"
|
|
],
|
|
"description": "The log type that this config enables.",
|
|
"type": "string",
|
|
"enumDescriptions": [
|
|
"Default case. Should never be this.",
|
|
"Admin reads. Example: CloudIAM getIamPolicy",
|
|
"Data writes. Example: CloudSQL Users create",
|
|
"Data reads. Example: CloudSQL Users list"
|
|
]
|
|
}
|
|
},
|
|
"id": "AuditLogConfig"
|
|
},
|
|
"ProjectBillingInfo": {
|
|
"properties": {
|
|
"name": {
|
|
"description": "The resource name for the `ProjectBillingInfo`; has the form\n`projects/{project_id}/billingInfo`. For example, the resource name for the\nbilling information for project `tokyo-rain-123` would be\n`projects/tokyo-rain-123/billingInfo`. This field is read-only.",
|
|
"type": "string"
|
|
},
|
|
"billingEnabled": {
|
|
"description": "True if the project is associated with an open billing account, to which\nusage on the project is charged. False if the project is associated with a\nclosed billing account, or no billing account at all, and therefore cannot\nuse paid services. This field is read-only.",
|
|
"type": "boolean"
|
|
},
|
|
"projectId": {
|
|
"description": "The ID of the project that this `ProjectBillingInfo` represents, such as\n`tokyo-rain-123`. This is a convenience field so that you don't need to\nparse the `name` field to obtain a project ID. This field is read-only.",
|
|
"type": "string"
|
|
},
|
|
"billingAccountName": {
|
|
"description": "The resource name of the billing account associated with the project, if\nany. For example, `billingAccounts/012345-567890-ABCDEF`.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": "ProjectBillingInfo",
|
|
"description": "Encapsulation of billing information for a GCP Console project. A project\nhas at most one associated billing account at a time (but a billing account\ncan be assigned to multiple projects).",
|
|
"type": "object"
|
|
},
|
|
"Money": {
|
|
"properties": {
|
|
"currencyCode": {
|
|
"description": "The 3-letter currency code defined in ISO 4217.",
|
|
"type": "string"
|
|
},
|
|
"nanos": {
|
|
"description": "Number of nano (10^-9) units of the amount.\nThe value must be between -999,999,999 and +999,999,999 inclusive.\nIf `units` is positive, `nanos` must be positive or zero.\nIf `units` is zero, `nanos` can be positive, zero, or negative.\nIf `units` is negative, `nanos` must be negative or zero.\nFor example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.",
|
|
"format": "int32",
|
|
"type": "integer"
|
|
},
|
|
"units": {
|
|
"description": "The whole units of the amount.\nFor example if `currencyCode` is `\"USD\"`, then 1 unit is one US dollar.",
|
|
"format": "int64",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": "Money",
|
|
"description": "Represents an amount of money with its currency type.",
|
|
"type": "object"
|
|
},
|
|
"BillingAccount": {
|
|
"properties": {
|
|
"name": {
|
|
"description": "The resource name of the billing account. The resource name has the form\n`billingAccounts/{billing_account_id}`. For example,\n`billingAccounts/012345-567890-ABCDEF` would be the resource name for\nbilling account `012345-567890-ABCDEF`.",
|
|
"type": "string"
|
|
},
|
|
"open": {
|
|
"description": "True if the billing account is open, and will therefore be charged for any\nusage on associated projects. False if the billing account is closed, and\ntherefore projects associated with it will be unable to use paid services.",
|
|
"type": "boolean"
|
|
},
|
|
"displayName": {
|
|
"description": "The display name given to the billing account, such as `My Billing\nAccount`. This name is displayed in the GCP Console.",
|
|
"type": "string"
|
|
},
|
|
"masterBillingAccount": {
|
|
"description": "If this account is a\n[subaccount](https://cloud.google.com/billing/docs/concepts), then this\nwill be the resource name of the master billing account that it is being\nresold through.\nOtherwise this will be empty.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": "BillingAccount",
|
|
"description": "A billing account in [GCP Console](https://console.cloud.google.com/).\nYou can assign a billing account to one or more projects.",
|
|
"type": "object"
|
|
}
|
|
},
|
|
"icons": {
|
|
"x32": "http://www.google.com/images/icons/product/search-32.gif",
|
|
"x16": "http://www.google.com/images/icons/product/search-16.gif"
|
|
},
|
|
"protocol": "rest",
|
|
"canonicalName": "Cloudbilling",
|
|
"auth": {
|
|
"oauth2": {
|
|
"scopes": {
|
|
"https://www.googleapis.com/auth/cloud-platform": {
|
|
"description": "View and manage your data across Google Cloud Platform services"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"rootUrl": "https://cloudbilling.googleapis.com/",
|
|
"ownerDomain": "google.com",
|
|
"name": "cloudbilling",
|
|
"batchPath": "batch",
|
|
"fullyEncodeReservedExpansion": true,
|
|
"title": "Cloud Billing API",
|
|
"ownerName": "Google",
|
|
"resources": {
|
|
"projects": {
|
|
"methods": {
|
|
"getBillingInfo": {
|
|
"id": "cloudbilling.projects.getBillingInfo",
|
|
"path": "v1/{+name}/billingInfo",
|
|
"description": "Gets the billing information for a project. The current authenticated user\nmust have [permission to view the\nproject](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo\n).",
|
|
"httpMethod": "GET",
|
|
"response": {
|
|
"$ref": "ProjectBillingInfo"
|
|
},
|
|
"parameterOrder": [
|
|
"name"
|
|
],
|
|
"parameters": {
|
|
"name": {
|
|
"pattern": "^projects/[^/]+$",
|
|
"location": "path",
|
|
"description": "The resource name of the project for which billing information is\nretrieved. For example, `projects/tokyo-rain-123`.",
|
|
"required": true,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
],
|
|
"flatPath": "v1/projects/{projectsId}/billingInfo"
|
|
},
|
|
"updateBillingInfo": {
|
|
"id": "cloudbilling.projects.updateBillingInfo",
|
|
"path": "v1/{+name}/billingInfo",
|
|
"description": "Sets or updates the billing account associated with a project. You specify\nthe new billing account by setting the `billing_account_name` in the\n`ProjectBillingInfo` resource to the resource name of a billing account.\nAssociating a project with an open billing account enables billing on the\nproject and allows charges for resource usage. If the project already had a\nbilling account, this method changes the billing account used for resource\nusage charges.\n\n*Note:* Incurred charges that have not yet been reported in the transaction\nhistory of the GCP Console might be billed to the new billing\naccount, even if the charge occurred before the new billing account was\nassigned to the project.\n\nThe current authenticated user must have ownership privileges for both the\n[project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo\n) and the [billing\naccount](https://cloud.google.com/billing/docs/how-to/billing-access).\n\nYou can disable billing on the project by setting the\n`billing_account_name` field to empty. This action disassociates the\ncurrent billing account from the project. Any billable activity of your\nin-use services will stop, and your application could stop functioning as\nexpected. Any unbilled charges to date will be billed to the previously\nassociated account. The current authenticated user must be either an owner\nof the project or an owner of the billing account for the project.\n\nNote that associating a project with a *closed* billing account will have\nmuch the same effect as disabling billing on the project: any paid\nresources used by the project will be shut down. Thus, unless you wish to\ndisable billing, you should always call this method with the name of an\n*open* billing account.",
|
|
"request": {
|
|
"$ref": "ProjectBillingInfo"
|
|
},
|
|
"httpMethod": "PUT",
|
|
"parameterOrder": [
|
|
"name"
|
|
],
|
|
"response": {
|
|
"$ref": "ProjectBillingInfo"
|
|
},
|
|
"parameters": {
|
|
"name": {
|
|
"description": "The resource name of the project associated with the billing information\nthat you want to update. For example, `projects/tokyo-rain-123`.",
|
|
"required": true,
|
|
"type": "string",
|
|
"pattern": "^projects/[^/]+$",
|
|
"location": "path"
|
|
}
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
],
|
|
"flatPath": "v1/projects/{projectsId}/billingInfo"
|
|
}
|
|
}
|
|
},
|
|
"billingAccounts": {
|
|
"methods": {
|
|
"getIamPolicy": {
|
|
"response": {
|
|
"$ref": "Policy"
|
|
},
|
|
"parameterOrder": [
|
|
"resource"
|
|
],
|
|
"httpMethod": "GET",
|
|
"parameters": {
|
|
"resource": {
|
|
"pattern": "^billingAccounts/[^/]+$",
|
|
"location": "path",
|
|
"description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.",
|
|
"required": true,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
],
|
|
"flatPath": "v1/billingAccounts/{billingAccountsId}:getIamPolicy",
|
|
"path": "v1/{+resource}:getIamPolicy",
|
|
"id": "cloudbilling.billingAccounts.getIamPolicy",
|
|
"description": "Gets the access control policy for a billing account.\nThe caller must have the `billing.accounts.getIamPolicy` permission on the\naccount, which is often given to billing account\n[viewers](https://cloud.google.com/billing/docs/how-to/billing-access)."
|
|
},
|
|
"get": {
|
|
"response": {
|
|
"$ref": "BillingAccount"
|
|
},
|
|
"parameterOrder": [
|
|
"name"
|
|
],
|
|
"httpMethod": "GET",
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
],
|
|
"parameters": {
|
|
"name": {
|
|
"pattern": "^billingAccounts/[^/]+$",
|
|
"location": "path",
|
|
"description": "The resource name of the billing account to retrieve. For example,\n`billingAccounts/012345-567890-ABCDEF`.",
|
|
"required": true,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"flatPath": "v1/billingAccounts/{billingAccountsId}",
|
|
"path": "v1/{+name}",
|
|
"id": "cloudbilling.billingAccounts.get",
|
|
"description": "Gets information about a billing account. The current authenticated user\nmust be a [viewer of the billing\naccount](https://cloud.google.com/billing/docs/how-to/billing-access)."
|
|
},
|
|
"patch": {
|
|
"response": {
|
|
"$ref": "BillingAccount"
|
|
},
|
|
"parameterOrder": [
|
|
"name"
|
|
],
|
|
"httpMethod": "PATCH",
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
],
|
|
"parameters": {
|
|
"name": {
|
|
"description": "The name of the billing account resource to be updated.",
|
|
"required": true,
|
|
"type": "string",
|
|
"pattern": "^billingAccounts/[^/]+$",
|
|
"location": "path"
|
|
},
|
|
"updateMask": {
|
|
"location": "query",
|
|
"description": "The update mask applied to the resource.\nOnly \"display_name\" is currently supported.",
|
|
"format": "google-fieldmask",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"flatPath": "v1/billingAccounts/{billingAccountsId}",
|
|
"path": "v1/{+name}",
|
|
"id": "cloudbilling.billingAccounts.patch",
|
|
"request": {
|
|
"$ref": "BillingAccount"
|
|
},
|
|
"description": "Updates a billing account's fields.\nCurrently the only field that can be edited is `display_name`.\nThe current authenticated user must have the `billing.accounts.update`\nIAM permission, which is typically given to the\n[administrator](https://cloud.google.com/billing/docs/how-to/billing-access)\nof the billing account."
|
|
},
|
|
"testIamPermissions": {
|
|
"response": {
|
|
"$ref": "TestIamPermissionsResponse"
|
|
},
|
|
"parameterOrder": [
|
|
"resource"
|
|
],
|
|
"httpMethod": "POST",
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
],
|
|
"parameters": {
|
|
"resource": {
|
|
"description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.",
|
|
"required": true,
|
|
"type": "string",
|
|
"pattern": "^billingAccounts/[^/]+$",
|
|
"location": "path"
|
|
}
|
|
},
|
|
"flatPath": "v1/billingAccounts/{billingAccountsId}:testIamPermissions",
|
|
"path": "v1/{+resource}:testIamPermissions",
|
|
"id": "cloudbilling.billingAccounts.testIamPermissions",
|
|
"request": {
|
|
"$ref": "TestIamPermissionsRequest"
|
|
},
|
|
"description": "Tests the access control policy for a billing account. This method takes\nthe resource and a set of permissions as input and returns the subset of\nthe input permissions that the caller is allowed for that resource."
|
|
},
|
|
"list": {
|
|
"path": "v1/billingAccounts",
|
|
"id": "cloudbilling.billingAccounts.list",
|
|
"description": "Lists the billing accounts that the current authenticated user has\npermission to [view](https://cloud.google.com/billing/docs/how-to/billing-access).",
|
|
"response": {
|
|
"$ref": "ListBillingAccountsResponse"
|
|
},
|
|
"parameterOrder": [],
|
|
"httpMethod": "GET",
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
],
|
|
"parameters": {
|
|
"filter": {
|
|
"location": "query",
|
|
"description": "Options for how to filter the returned billing accounts.\nCurrently this only supports filtering for\n[subaccounts](https://cloud.google.com/billing/docs/concepts) under a\nsingle provided reseller billing account.\n(e.g. \"master_billing_account=billingAccounts/012345-678901-ABCDEF\").\nBoolean algebra and other fields are not currently supported.",
|
|
"type": "string"
|
|
},
|
|
"pageToken": {
|
|
"location": "query",
|
|
"description": "A token identifying a page of results to return. This should be a\n`next_page_token` value returned from a previous `ListBillingAccounts`\ncall. If unspecified, the first page of results is returned.",
|
|
"type": "string"
|
|
},
|
|
"pageSize": {
|
|
"description": "Requested page size. The maximum page size is 100; this is also the\ndefault.",
|
|
"format": "int32",
|
|
"type": "integer",
|
|
"location": "query"
|
|
}
|
|
},
|
|
"flatPath": "v1/billingAccounts"
|
|
},
|
|
"setIamPolicy": {
|
|
"request": {
|
|
"$ref": "SetIamPolicyRequest"
|
|
},
|
|
"description": "Sets the access control policy for a billing account. Replaces any existing\npolicy.\nThe caller must have the `billing.accounts.setIamPolicy` permission on the\naccount, which is often given to billing account\n[administrators](https://cloud.google.com/billing/docs/how-to/billing-access).",
|
|
"response": {
|
|
"$ref": "Policy"
|
|
},
|
|
"parameterOrder": [
|
|
"resource"
|
|
],
|
|
"httpMethod": "POST",
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
],
|
|
"parameters": {
|
|
"resource": {
|
|
"pattern": "^billingAccounts/[^/]+$",
|
|
"location": "path",
|
|
"description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.",
|
|
"required": true,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"flatPath": "v1/billingAccounts/{billingAccountsId}:setIamPolicy",
|
|
"path": "v1/{+resource}:setIamPolicy",
|
|
"id": "cloudbilling.billingAccounts.setIamPolicy"
|
|
},
|
|
"create": {
|
|
"request": {
|
|
"$ref": "BillingAccount"
|
|
},
|
|
"description": "Creates a billing account.\nThis method can only be used to create\n[billing subaccounts](https://cloud.google.com/billing/docs/concepts)\nby GCP resellers.\nWhen creating a subaccount, the current authenticated user must have the\n`billing.accounts.update` IAM permission on the master account, which is\ntypically given to billing account\n[administrators](https://cloud.google.com/billing/docs/how-to/billing-access).\nThis method will return an error if the master account has not been\nprovisioned as a reseller account.",
|
|
"response": {
|
|
"$ref": "BillingAccount"
|
|
},
|
|
"parameterOrder": [],
|
|
"httpMethod": "POST",
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
],
|
|
"parameters": {},
|
|
"flatPath": "v1/billingAccounts",
|
|
"path": "v1/billingAccounts",
|
|
"id": "cloudbilling.billingAccounts.create"
|
|
}
|
|
},
|
|
"resources": {
|
|
"projects": {
|
|
"methods": {
|
|
"list": {
|
|
"description": "Lists the projects associated with a billing account. The current\nauthenticated user must have the `billing.resourceAssociations.list` IAM\npermission, which is often given to billing account\n[viewers](https://cloud.google.com/billing/docs/how-to/billing-access).",
|
|
"response": {
|
|
"$ref": "ListProjectBillingInfoResponse"
|
|
},
|
|
"parameterOrder": [
|
|
"name"
|
|
],
|
|
"httpMethod": "GET",
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
],
|
|
"parameters": {
|
|
"name": {
|
|
"description": "The resource name of the billing account associated with the projects that\nyou want to list. For example, `billingAccounts/012345-567890-ABCDEF`.",
|
|
"required": true,
|
|
"type": "string",
|
|
"pattern": "^billingAccounts/[^/]+$",
|
|
"location": "path"
|
|
},
|
|
"pageToken": {
|
|
"location": "query",
|
|
"description": "A token identifying a page of results to be returned. This should be a\n`next_page_token` value returned from a previous `ListProjectBillingInfo`\ncall. If unspecified, the first page of results is returned.",
|
|
"type": "string"
|
|
},
|
|
"pageSize": {
|
|
"description": "Requested page size. The maximum page size is 100; this is also the\ndefault.",
|
|
"format": "int32",
|
|
"type": "integer",
|
|
"location": "query"
|
|
}
|
|
},
|
|
"flatPath": "v1/billingAccounts/{billingAccountsId}/projects",
|
|
"path": "v1/{+name}/projects",
|
|
"id": "cloudbilling.billingAccounts.projects.list"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"services": {
|
|
"resources": {
|
|
"skus": {
|
|
"methods": {
|
|
"list": {
|
|
"response": {
|
|
"$ref": "ListSkusResponse"
|
|
},
|
|
"parameterOrder": [
|
|
"parent"
|
|
],
|
|
"httpMethod": "GET",
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
],
|
|
"parameters": {
|
|
"endTime": {
|
|
"location": "query",
|
|
"description": "Optional exclusive end time of the time range for which the pricing\nversions will be returned. Timestamps in the future are not allowed.\nThe time range has to be within a single calendar month in\nAmerica/Los_Angeles timezone. Time range as a whole is optional. If not\nspecified, the latest pricing will be returned (up to 12 hours old at\nmost).",
|
|
"format": "google-datetime",
|
|
"type": "string"
|
|
},
|
|
"pageToken": {
|
|
"description": "A token identifying a page of results to return. This should be a\n`next_page_token` value returned from a previous `ListSkus`\ncall. If unspecified, the first page of results is returned.",
|
|
"type": "string",
|
|
"location": "query"
|
|
},
|
|
"startTime": {
|
|
"description": "Optional inclusive start time of the time range for which the pricing\nversions will be returned. Timestamps in the future are not allowed.\nThe time range has to be within a single calendar month in\nAmerica/Los_Angeles timezone. Time range as a whole is optional. If not\nspecified, the latest pricing will be returned (up to 12 hours old at\nmost).",
|
|
"format": "google-datetime",
|
|
"type": "string",
|
|
"location": "query"
|
|
},
|
|
"pageSize": {
|
|
"location": "query",
|
|
"description": "Requested page size. Defaults to 5000.",
|
|
"format": "int32",
|
|
"type": "integer"
|
|
},
|
|
"parent": {
|
|
"pattern": "^services/[^/]+$",
|
|
"location": "path",
|
|
"description": "The name of the service.\nExample: \"services/DA34-426B-A397\"",
|
|
"required": true,
|
|
"type": "string"
|
|
},
|
|
"currencyCode": {
|
|
"description": "The ISO 4217 currency code for the pricing info in the response proto.\nWill use the conversion rate as of start_time.\nOptional. If not specified USD will be used.",
|
|
"type": "string",
|
|
"location": "query"
|
|
}
|
|
},
|
|
"flatPath": "v1/services/{servicesId}/skus",
|
|
"path": "v1/{+parent}/skus",
|
|
"id": "cloudbilling.services.skus.list",
|
|
"description": "Lists all publicly available SKUs for a given cloud service."
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"methods": {
|
|
"list": {
|
|
"id": "cloudbilling.services.list",
|
|
"path": "v1/services",
|
|
"description": "Lists all public cloud services.",
|
|
"httpMethod": "GET",
|
|
"response": {
|
|
"$ref": "ListServicesResponse"
|
|
},
|
|
"parameterOrder": [],
|
|
"parameters": {
|
|
"pageToken": {
|
|
"description": "A token identifying a page of results to return. This should be a\n`next_page_token` value returned from a previous `ListServices`\ncall. If unspecified, the first page of results is returned.",
|
|
"type": "string",
|
|
"location": "query"
|
|
},
|
|
"pageSize": {
|
|
"description": "Requested page size. Defaults to 5000.",
|
|
"format": "int32",
|
|
"type": "integer",
|
|
"location": "query"
|
|
}
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
],
|
|
"flatPath": "v1/services"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"parameters": {
|
|
"upload_protocol": {
|
|
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
|
"type": "string",
|
|
"location": "query"
|
|
},
|
|
"quotaUser": {
|
|
"location": "query",
|
|
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
|
|
"type": "string"
|
|
},
|
|
"prettyPrint": {
|
|
"description": "Returns response with indentations and line breaks.",
|
|
"type": "boolean",
|
|
"default": "true",
|
|
"location": "query"
|
|
},
|
|
"fields": {
|
|
"location": "query",
|
|
"description": "Selector specifying which fields to include in a partial response.",
|
|
"type": "string"
|
|
},
|
|
"uploadType": {
|
|
"location": "query",
|
|
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
|
"type": "string"
|
|
},
|
|
"callback": {
|
|
"location": "query",
|
|
"description": "JSONP",
|
|
"type": "string"
|
|
},
|
|
"oauth_token": {
|
|
"location": "query",
|
|
"description": "OAuth 2.0 token for the current user.",
|
|
"type": "string"
|
|
},
|
|
"$.xgafv": {
|
|
"enum": [
|
|
"1",
|
|
"2"
|
|
],
|
|
"description": "V1 error format.",
|
|
"type": "string",
|
|
"enumDescriptions": [
|
|
"v1 error format",
|
|
"v2 error format"
|
|
],
|
|
"location": "query"
|
|
},
|
|
"alt": {
|
|
"description": "Data format for response.",
|
|
"default": "json",
|
|
"enum": [
|
|
"json",
|
|
"media",
|
|
"proto"
|
|
],
|
|
"type": "string",
|
|
"enumDescriptions": [
|
|
"Responses with Content-Type of application/json",
|
|
"Media download with context-dependent Content-Type",
|
|
"Responses with Content-Type of application/x-protobuf"
|
|
],
|
|
"location": "query"
|
|
},
|
|
"access_token": {
|
|
"location": "query",
|
|
"description": "OAuth access token.",
|
|
"type": "string"
|
|
},
|
|
"key": {
|
|
"location": "query",
|
|
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"version": "v1",
|
|
"baseUrl": "https://cloudbilling.googleapis.com/",
|
|
"kind": "discovery#restDescription",
|
|
"description": "Allows developers to manage billing for their Google Cloud Platform projects\n programmatically.",
|
|
"servicePath": "",
|
|
"basePath": ""
|
|
}
|