Skip to content

Commit

Permalink
feat(cloudbilling): update the API
Browse files Browse the repository at this point in the history
#### cloudbilling:v1beta

The following keys were added:
- schemas.InterRegionEgress.description
- schemas.InterRegionEgress.id
- schemas.InterRegionEgress.properties.destinationRegion.description
- schemas.InterRegionEgress.properties.destinationRegion.type
- schemas.InterRegionEgress.properties.egressRate.$ref
- schemas.InterRegionEgress.properties.egressRate.description
- schemas.InterRegionEgress.properties.sourceRegion.description
- schemas.InterRegionEgress.properties.sourceRegion.type
- schemas.InterRegionEgress.type
- schemas.IntraRegionEgress.description
- schemas.IntraRegionEgress.id
- schemas.IntraRegionEgress.properties.egressRate.$ref
- schemas.IntraRegionEgress.properties.egressRate.description
- schemas.IntraRegionEgress.type
- schemas.VmToVmEgressWorkload.description
- schemas.VmToVmEgressWorkload.id
- schemas.VmToVmEgressWorkload.properties.interRegionEgress.$ref
- schemas.VmToVmEgressWorkload.properties.intraRegionEgress.$ref
- schemas.VmToVmEgressWorkload.type
- schemas.Workload.properties.vmToVmEgressWorkload.$ref
- schemas.Workload.properties.vmToVmEgressWorkload.description

#### cloudbilling:v1

The following keys were changed:
- schemas.Binding.properties.members.description
  • Loading branch information
yoshi-automation authored and sofisl committed Feb 9, 2023
1 parent ed6c311 commit 75ebaa2
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 4 deletions.
4 changes: 2 additions & 2 deletions discovery/cloudbilling-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@
}
}
},
"revision": "20220914",
"revision": "20230130",
"rootUrl": "https://cloudbilling.googleapis.com/",
"schemas": {
"AggregationInfo": {
Expand Down Expand Up @@ -644,7 +644,7 @@
"description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)."
},
"members": {
"description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ",
"description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.",
"items": {
"type": "string"
},
Expand Down
49 changes: 48 additions & 1 deletion discovery/cloudbilling-v1beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
}
}
},
"revision": "20221206",
"revision": "20230130",
"rootUrl": "https://cloudbilling.googleapis.com/",
"schemas": {
"CacheFillRegions": {
Expand Down Expand Up @@ -736,6 +736,36 @@
},
"type": "object"
},
"InterRegionEgress": {
"description": "Egress traffic between two regions.",
"id": "InterRegionEgress",
"properties": {
"destinationRegion": {
"description": "Which [region](https://cloud.google.com/compute/docs/regions-zones) the egress data goes to.",
"type": "string"
},
"egressRate": {
"$ref": "Usage",
"description": "VM to VM egress usage. Expected units such as \"GiBy/s, By/s, etc.\""
},
"sourceRegion": {
"description": "Which [region](https://cloud.google.com/compute/docs/regions-zones) the egress data comes from.",
"type": "string"
}
},
"type": "object"
},
"IntraRegionEgress": {
"description": "Egress traffic within the same region. When source region and destination region are in the same zone, using the internal IP addresses, there isn't any egress charge.",
"id": "IntraRegionEgress",
"properties": {
"egressRate": {
"$ref": "Usage",
"description": "VM to VM egress usage. Expected units such as \"GiBy/s, By/s, etc.\""
}
},
"type": "object"
},
"MachineType": {
"description": "Specification of machine series, memory, and number of vCPUs.",
"id": "MachineType",
Expand Down Expand Up @@ -1178,6 +1208,19 @@
},
"type": "object"
},
"VmToVmEgressWorkload": {
"description": "Specify VM to VM egress.",
"id": "VmToVmEgressWorkload",
"properties": {
"interRegionEgress": {
"$ref": "InterRegionEgress"
},
"intraRegionEgress": {
"$ref": "IntraRegionEgress"
}
},
"type": "object"
},
"Workload": {
"description": "Specifies usage on a single Google Cloud product over a time frame. Each Google Cloud product has its own message, containing specific product configuration parameters of the product usage amounts along each dimension in which the product is billed.",
"id": "Workload",
Expand Down Expand Up @@ -1221,6 +1264,10 @@
"standardTierEgressWorkload": {
"$ref": "StandardTierEgressWorkload",
"description": "Usage on Standard Tier Internet Egress."
},
"vmToVmEgressWorkload": {
"$ref": "VmToVmEgressWorkload",
"description": "Usage on Vm to Vm Egress."
}
},
"type": "object"
Expand Down
2 changes: 1 addition & 1 deletion src/apis/cloudbilling/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export namespace cloudbilling_v1 {
*/
condition?: Schema$Expr;
/**
* Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid\}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid\}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid\}.svc.id.goog[{namespace\}/{kubernetes-sa\}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid\}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid\}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid\}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid\}` and the recovered group retains the role in the binding. * `domain:{domain\}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
* Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid\}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid\}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid\}.svc.id.goog[{namespace\}/{kubernetes-sa\}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid\}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain\}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid\}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid\}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid\}` and the recovered group retains the role in the binding.
*/
members?: string[] | null;
/**
Expand Down
37 changes: 37 additions & 0 deletions src/apis/cloudbilling/v1beta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,32 @@ export namespace cloudbilling_v1beta {
*/
acceleratorType?: string | null;
}
/**
* Egress traffic between two regions.
*/
export interface Schema$InterRegionEgress {
/**
* Which [region](https://cloud.google.com/compute/docs/regions-zones) the egress data goes to.
*/
destinationRegion?: string | null;
/**
* VM to VM egress usage. Expected units such as "GiBy/s, By/s, etc."
*/
egressRate?: Schema$Usage;
/**
* Which [region](https://cloud.google.com/compute/docs/regions-zones) the egress data comes from.
*/
sourceRegion?: string | null;
}
/**
* Egress traffic within the same region. When source region and destination region are in the same zone, using the internal IP addresses, there isn't any egress charge.
*/
export interface Schema$IntraRegionEgress {
/**
* VM to VM egress usage. Expected units such as "GiBy/s, By/s, etc."
*/
egressRate?: Schema$Usage;
}
/**
* Specification of machine series, memory, and number of vCPUs.
*/
Expand Down Expand Up @@ -774,6 +800,13 @@ export namespace cloudbilling_v1beta {
*/
virtualCpuCount?: string | null;
}
/**
* Specify VM to VM egress.
*/
export interface Schema$VmToVmEgressWorkload {
interRegionEgress?: Schema$InterRegionEgress;
intraRegionEgress?: Schema$IntraRegionEgress;
}
/**
* Specifies usage on a single Google Cloud product over a time frame. Each Google Cloud product has its own message, containing specific product configuration parameters of the product usage amounts along each dimension in which the product is billed.
*/
Expand Down Expand Up @@ -818,6 +851,10 @@ export namespace cloudbilling_v1beta {
* Usage on Standard Tier Internet Egress.
*/
standardTierEgressWorkload?: Schema$StandardTierEgressWorkload;
/**
* Usage on Vm to Vm Egress.
*/
vmToVmEgressWorkload?: Schema$VmToVmEgressWorkload;
}
/**
* Estimated cost for a workload.
Expand Down

0 comments on commit 75ebaa2

Please sign in to comment.