Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, h1, h2, h3, div, span, p, pre, a { |
| 5 | margin: 0; |
| 6 | padding: 0; |
| 7 | border: 0; |
| 8 | font-weight: inherit; |
| 9 | font-style: inherit; |
| 10 | font-size: 100%; |
| 11 | font-family: inherit; |
| 12 | vertical-align: baseline; |
| 13 | } |
| 14 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, h2, h3 { |
| 50 | border-bottom: solid #CCC 1px; |
| 51 | } |
| 52 | |
| 53 | .toc_element { |
| 54 | margin-top: 0.5em; |
| 55 | } |
| 56 | |
| 57 | .firstline { |
| 58 | margin-left: 2 em; |
| 59 | } |
| 60 | |
| 61 | .method { |
| 62 | margin-top: 1em; |
| 63 | border: solid 1px #CCC; |
| 64 | padding: 1em; |
| 65 | background: #EEE; |
| 66 | } |
| 67 | |
| 68 | .details { |
| 69 | font-weight: bold; |
| 70 | font-size: 14px; |
| 71 | } |
| 72 | |
| 73 | </style> |
| 74 | |
| 75 | <h1><a href="bigqueryreservation_v1beta1.html">BigQuery Reservation API</a> . <a href="bigqueryreservation_v1beta1.projects.html">projects</a> . <a href="bigqueryreservation_v1beta1.projects.locations.html">locations</a> . <a href="bigqueryreservation_v1beta1.projects.locations.capacityCommitments.html">capacityCommitments</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
| 78 | <code><a href="#create">create(parent, body=None, enforceSingleAdminProjectPerOrg=None, x__xgafv=None)</a></code></p> |
| 79 | <p class="firstline">Creates a new capacity commitment resource.</p> |
| 80 | <p class="toc_element"> |
| 81 | <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> |
| 82 | <p class="firstline">Deletes a capacity commitment. Attempting to delete capacity commitment</p> |
| 83 | <p class="toc_element"> |
| 84 | <code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
| 85 | <p class="firstline">Returns information about the capacity commitment.</p> |
| 86 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 87 | <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 88 | <p class="firstline">Lists all the capacity commitments for the admin project.</p> |
| 89 | <p class="toc_element"> |
| 90 | <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> |
| 91 | <p class="firstline">Retrieves the next page of results.</p> |
| 92 | <p class="toc_element"> |
| 93 | <code><a href="#merge">merge(parent, body=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 94 | <p class="firstline">Merges capacity commitments of the same plan into a single commitment.</p> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 95 | <p class="toc_element"> |
| 96 | <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p> |
| 97 | <p class="firstline">Updates an existing capacity commitment.</p> |
| 98 | <p class="toc_element"> |
| 99 | <code><a href="#split">split(name, body=None, x__xgafv=None)</a></code></p> |
| 100 | <p class="firstline">Splits capacity commitment to two commitments of the same plan and</p> |
| 101 | <h3>Method Details</h3> |
| 102 | <div class="method"> |
| 103 | <code class="details" id="create">create(parent, body=None, enforceSingleAdminProjectPerOrg=None, x__xgafv=None)</code> |
| 104 | <pre>Creates a new capacity commitment resource. |
| 105 | |
| 106 | Args: |
| 107 | parent: string, Required. Resource name of the parent reservation. E.g., |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 108 | `projects/myproject/locations/US` (required) |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 109 | body: object, The request body. |
| 110 | The object takes the form of: |
| 111 | |
| 112 | { # Capacity commitment is a way to purchase compute capacity for BigQuery jobs |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 113 | # (in the form of slots) with some committed period of usage. Annual |
| 114 | # commitments renew by default. Commitments can be removed after their |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 115 | # commitment end time passes. |
| 116 | # |
| 117 | # In order to remove annual commitment, its plan needs to be changed |
| 118 | # to monthly or flex first. |
| 119 | # |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 120 | # A capacity commitment resource exists as a child resource of the admin |
| 121 | # project. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 122 | "slotCount": "A String", # Number of slots in this commitment. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 123 | "plan": "A String", # Capacity commitment commitment plan. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 124 | "failureStatus": { # The `Status` type defines a logical error model that is suitable for # Output only. For FAILED commitment plan, provides the reason of failure. |
| 125 | # different programming environments, including REST APIs and RPC APIs. It is |
| 126 | # used by [gRPC](https://github.com/grpc). Each `Status` message contains |
| 127 | # three pieces of data: error code, error message, and error details. |
| 128 | # |
| 129 | # You can find out more about this error model and how to work with it in the |
| 130 | # [API Design Guide](https://cloud.google.com/apis/design/errors). |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 131 | "details": [ # A list of messages that carry the error details. There is a common set of |
| 132 | # message types for APIs to use. |
| 133 | { |
| 134 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 135 | }, |
| 136 | ], |
| 137 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 138 | "message": "A String", # A developer-facing error message, which should be in English. Any |
| 139 | # user-facing error message should be localized and sent in the |
| 140 | # google.rpc.Status.details field, or localized by the client. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 141 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 142 | "commitmentStartTime": "A String", # Output only. The start of the current commitment period. It is applicable only for |
| 143 | # ACTIVE capacity commitments. |
| 144 | "name": "A String", # Output only. The resource name of the capacity commitment, e.g., |
| 145 | # `projects/myproject/locations/US/capacityCommitments/123` |
| 146 | "renewalPlan": "A String", # The plan this capacity commitment is converted to after commitment_end_time |
| 147 | # passes. Once the plan is changed, committed period is extended according to |
| 148 | # commitment plan. Only applicable for ANNUAL commitments. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 149 | "commitmentEndTime": "A String", # Output only. The end of the current commitment period. It is applicable only for ACTIVE |
| 150 | # capacity commitments. |
| 151 | "state": "A String", # Output only. State of the commitment. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 152 | } |
| 153 | |
| 154 | enforceSingleAdminProjectPerOrg: boolean, If true, fail the request if another project in the organization has a |
| 155 | capacity commitment. |
| 156 | x__xgafv: string, V1 error format. |
| 157 | Allowed values |
| 158 | 1 - v1 error format |
| 159 | 2 - v2 error format |
| 160 | |
| 161 | Returns: |
| 162 | An object of the form: |
| 163 | |
| 164 | { # Capacity commitment is a way to purchase compute capacity for BigQuery jobs |
| 165 | # (in the form of slots) with some committed period of usage. Annual |
| 166 | # commitments renew by default. Commitments can be removed after their |
| 167 | # commitment end time passes. |
| 168 | # |
| 169 | # In order to remove annual commitment, its plan needs to be changed |
| 170 | # to monthly or flex first. |
| 171 | # |
| 172 | # A capacity commitment resource exists as a child resource of the admin |
| 173 | # project. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 174 | "slotCount": "A String", # Number of slots in this commitment. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 175 | "plan": "A String", # Capacity commitment commitment plan. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 176 | "failureStatus": { # The `Status` type defines a logical error model that is suitable for # Output only. For FAILED commitment plan, provides the reason of failure. |
| 177 | # different programming environments, including REST APIs and RPC APIs. It is |
| 178 | # used by [gRPC](https://github.com/grpc). Each `Status` message contains |
| 179 | # three pieces of data: error code, error message, and error details. |
| 180 | # |
| 181 | # You can find out more about this error model and how to work with it in the |
| 182 | # [API Design Guide](https://cloud.google.com/apis/design/errors). |
| 183 | "details": [ # A list of messages that carry the error details. There is a common set of |
| 184 | # message types for APIs to use. |
| 185 | { |
| 186 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 187 | }, |
| 188 | ], |
| 189 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 190 | "message": "A String", # A developer-facing error message, which should be in English. Any |
| 191 | # user-facing error message should be localized and sent in the |
| 192 | # google.rpc.Status.details field, or localized by the client. |
| 193 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 194 | "commitmentStartTime": "A String", # Output only. The start of the current commitment period. It is applicable only for |
| 195 | # ACTIVE capacity commitments. |
| 196 | "name": "A String", # Output only. The resource name of the capacity commitment, e.g., |
| 197 | # `projects/myproject/locations/US/capacityCommitments/123` |
| 198 | "renewalPlan": "A String", # The plan this capacity commitment is converted to after commitment_end_time |
| 199 | # passes. Once the plan is changed, committed period is extended according to |
| 200 | # commitment plan. Only applicable for ANNUAL commitments. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 201 | "commitmentEndTime": "A String", # Output only. The end of the current commitment period. It is applicable only for ACTIVE |
| 202 | # capacity commitments. |
| 203 | "state": "A String", # Output only. State of the commitment. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 204 | }</pre> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 205 | </div> |
| 206 | |
| 207 | <div class="method"> |
| 208 | <code class="details" id="delete">delete(name, x__xgafv=None)</code> |
| 209 | <pre>Deletes a capacity commitment. Attempting to delete capacity commitment |
| 210 | before its commitment_end_time will fail with the error code |
| 211 | `google.rpc.Code.FAILED_PRECONDITION`. |
| 212 | |
| 213 | Args: |
| 214 | name: string, Required. Resource name of the capacity commitment to delete. E.g., |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 215 | `projects/myproject/locations/US/capacityCommitments/123` (required) |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 216 | x__xgafv: string, V1 error format. |
| 217 | Allowed values |
| 218 | 1 - v1 error format |
| 219 | 2 - v2 error format |
| 220 | |
| 221 | Returns: |
| 222 | An object of the form: |
| 223 | |
| 224 | { # A generic empty message that you can re-use to avoid defining duplicated |
| 225 | # empty messages in your APIs. A typical example is to use it as the request |
| 226 | # or the response type of an API method. For instance: |
| 227 | # |
| 228 | # service Foo { |
| 229 | # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
| 230 | # } |
| 231 | # |
| 232 | # The JSON representation for `Empty` is empty JSON object `{}`. |
| 233 | }</pre> |
| 234 | </div> |
| 235 | |
| 236 | <div class="method"> |
| 237 | <code class="details" id="get">get(name, x__xgafv=None)</code> |
| 238 | <pre>Returns information about the capacity commitment. |
| 239 | |
| 240 | Args: |
| 241 | name: string, Required. Resource name of the capacity commitment to retrieve. E.g., |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 242 | `projects/myproject/locations/US/capacityCommitments/123` (required) |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 243 | x__xgafv: string, V1 error format. |
| 244 | Allowed values |
| 245 | 1 - v1 error format |
| 246 | 2 - v2 error format |
| 247 | |
| 248 | Returns: |
| 249 | An object of the form: |
| 250 | |
| 251 | { # Capacity commitment is a way to purchase compute capacity for BigQuery jobs |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 252 | # (in the form of slots) with some committed period of usage. Annual |
| 253 | # commitments renew by default. Commitments can be removed after their |
| 254 | # commitment end time passes. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 255 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 256 | # In order to remove annual commitment, its plan needs to be changed |
| 257 | # to monthly or flex first. |
| 258 | # |
| 259 | # A capacity commitment resource exists as a child resource of the admin |
| 260 | # project. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 261 | "slotCount": "A String", # Number of slots in this commitment. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 262 | "plan": "A String", # Capacity commitment commitment plan. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 263 | "failureStatus": { # The `Status` type defines a logical error model that is suitable for # Output only. For FAILED commitment plan, provides the reason of failure. |
| 264 | # different programming environments, including REST APIs and RPC APIs. It is |
| 265 | # used by [gRPC](https://github.com/grpc). Each `Status` message contains |
| 266 | # three pieces of data: error code, error message, and error details. |
| 267 | # |
| 268 | # You can find out more about this error model and how to work with it in the |
| 269 | # [API Design Guide](https://cloud.google.com/apis/design/errors). |
| 270 | "details": [ # A list of messages that carry the error details. There is a common set of |
| 271 | # message types for APIs to use. |
| 272 | { |
| 273 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 274 | }, |
| 275 | ], |
| 276 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 277 | "message": "A String", # A developer-facing error message, which should be in English. Any |
| 278 | # user-facing error message should be localized and sent in the |
| 279 | # google.rpc.Status.details field, or localized by the client. |
| 280 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 281 | "commitmentStartTime": "A String", # Output only. The start of the current commitment period. It is applicable only for |
| 282 | # ACTIVE capacity commitments. |
| 283 | "name": "A String", # Output only. The resource name of the capacity commitment, e.g., |
| 284 | # `projects/myproject/locations/US/capacityCommitments/123` |
| 285 | "renewalPlan": "A String", # The plan this capacity commitment is converted to after commitment_end_time |
| 286 | # passes. Once the plan is changed, committed period is extended according to |
| 287 | # commitment plan. Only applicable for ANNUAL commitments. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 288 | "commitmentEndTime": "A String", # Output only. The end of the current commitment period. It is applicable only for ACTIVE |
| 289 | # capacity commitments. |
| 290 | "state": "A String", # Output only. State of the commitment. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 291 | }</pre> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 292 | </div> |
| 293 | |
| 294 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 295 | <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 296 | <pre>Lists all the capacity commitments for the admin project. |
| 297 | |
| 298 | Args: |
| 299 | parent: string, Required. Resource name of the parent reservation. E.g., |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 300 | `projects/myproject/locations/US` (required) |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 301 | pageSize: integer, The maximum number of items to return. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 302 | pageToken: string, The next_page_token value returned from a previous List request, if any. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 303 | x__xgafv: string, V1 error format. |
| 304 | Allowed values |
| 305 | 1 - v1 error format |
| 306 | 2 - v2 error format |
| 307 | |
| 308 | Returns: |
| 309 | An object of the form: |
| 310 | |
| 311 | { # The response for ReservationService.ListCapacityCommitments. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 312 | "nextPageToken": "A String", # Token to retrieve the next page of results, or empty if there are no |
| 313 | # more results in the list. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 314 | "capacityCommitments": [ # List of capacity commitments visible to the user. |
| 315 | { # Capacity commitment is a way to purchase compute capacity for BigQuery jobs |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 316 | # (in the form of slots) with some committed period of usage. Annual |
| 317 | # commitments renew by default. Commitments can be removed after their |
| 318 | # commitment end time passes. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 319 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 320 | # In order to remove annual commitment, its plan needs to be changed |
| 321 | # to monthly or flex first. |
| 322 | # |
| 323 | # A capacity commitment resource exists as a child resource of the admin |
| 324 | # project. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 325 | "slotCount": "A String", # Number of slots in this commitment. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 326 | "plan": "A String", # Capacity commitment commitment plan. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 327 | "failureStatus": { # The `Status` type defines a logical error model that is suitable for # Output only. For FAILED commitment plan, provides the reason of failure. |
| 328 | # different programming environments, including REST APIs and RPC APIs. It is |
| 329 | # used by [gRPC](https://github.com/grpc). Each `Status` message contains |
| 330 | # three pieces of data: error code, error message, and error details. |
| 331 | # |
| 332 | # You can find out more about this error model and how to work with it in the |
| 333 | # [API Design Guide](https://cloud.google.com/apis/design/errors). |
| 334 | "details": [ # A list of messages that carry the error details. There is a common set of |
| 335 | # message types for APIs to use. |
| 336 | { |
| 337 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 338 | }, |
| 339 | ], |
| 340 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 341 | "message": "A String", # A developer-facing error message, which should be in English. Any |
| 342 | # user-facing error message should be localized and sent in the |
| 343 | # google.rpc.Status.details field, or localized by the client. |
| 344 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 345 | "commitmentStartTime": "A String", # Output only. The start of the current commitment period. It is applicable only for |
| 346 | # ACTIVE capacity commitments. |
| 347 | "name": "A String", # Output only. The resource name of the capacity commitment, e.g., |
| 348 | # `projects/myproject/locations/US/capacityCommitments/123` |
| 349 | "renewalPlan": "A String", # The plan this capacity commitment is converted to after commitment_end_time |
| 350 | # passes. Once the plan is changed, committed period is extended according to |
| 351 | # commitment plan. Only applicable for ANNUAL commitments. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 352 | "commitmentEndTime": "A String", # Output only. The end of the current commitment period. It is applicable only for ACTIVE |
| 353 | # capacity commitments. |
| 354 | "state": "A String", # Output only. State of the commitment. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 355 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 356 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 357 | }</pre> |
| 358 | </div> |
| 359 | |
| 360 | <div class="method"> |
| 361 | <code class="details" id="list_next">list_next(previous_request, previous_response)</code> |
| 362 | <pre>Retrieves the next page of results. |
| 363 | |
| 364 | Args: |
| 365 | previous_request: The request for the previous page. (required) |
| 366 | previous_response: The response from the request for the previous page. (required) |
| 367 | |
| 368 | Returns: |
| 369 | A request object that you can call 'execute()' on to request the next |
| 370 | page. Returns None if there are no more items in the collection. |
| 371 | </pre> |
| 372 | </div> |
| 373 | |
| 374 | <div class="method"> |
| 375 | <code class="details" id="merge">merge(parent, body=None, x__xgafv=None)</code> |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 376 | <pre>Merges capacity commitments of the same plan into a single commitment. |
| 377 | |
| 378 | The resulting capacity commitment has the greater commitment_end_time |
| 379 | out of the to-be-merged capacity commitments. |
| 380 | |
| 381 | Attempting to merge capacity commitments of different plan will fail |
| 382 | with the error code `google.rpc.Code.FAILED_PRECONDITION`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 383 | |
| 384 | Args: |
| 385 | parent: string, Parent resource that identifies admin project and location e.g., |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 386 | `projects/myproject/locations/us` (required) |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 387 | body: object, The request body. |
| 388 | The object takes the form of: |
| 389 | |
| 390 | { # The request for ReservationService.MergeCapacityCommitments. |
| 391 | "capacityCommitmentIds": [ # Ids of capacity commitments to merge. |
| 392 | # These capacity commitments must exist under admin project and location |
| 393 | # specified in the parent. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 394 | # ID is the last portion of capacity commitment name e.g., 'abc' for |
| 395 | # projects/myproject/locations/US/capacityCommitments/abc |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 396 | "A String", |
| 397 | ], |
| 398 | } |
| 399 | |
| 400 | x__xgafv: string, V1 error format. |
| 401 | Allowed values |
| 402 | 1 - v1 error format |
| 403 | 2 - v2 error format |
| 404 | |
| 405 | Returns: |
| 406 | An object of the form: |
| 407 | |
| 408 | { # Capacity commitment is a way to purchase compute capacity for BigQuery jobs |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 409 | # (in the form of slots) with some committed period of usage. Annual |
| 410 | # commitments renew by default. Commitments can be removed after their |
| 411 | # commitment end time passes. |
| 412 | # |
| 413 | # In order to remove annual commitment, its plan needs to be changed |
| 414 | # to monthly or flex first. |
| 415 | # |
| 416 | # A capacity commitment resource exists as a child resource of the admin |
| 417 | # project. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 418 | "slotCount": "A String", # Number of slots in this commitment. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 419 | "plan": "A String", # Capacity commitment commitment plan. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 420 | "failureStatus": { # The `Status` type defines a logical error model that is suitable for # Output only. For FAILED commitment plan, provides the reason of failure. |
| 421 | # different programming environments, including REST APIs and RPC APIs. It is |
| 422 | # used by [gRPC](https://github.com/grpc). Each `Status` message contains |
| 423 | # three pieces of data: error code, error message, and error details. |
| 424 | # |
| 425 | # You can find out more about this error model and how to work with it in the |
| 426 | # [API Design Guide](https://cloud.google.com/apis/design/errors). |
| 427 | "details": [ # A list of messages that carry the error details. There is a common set of |
| 428 | # message types for APIs to use. |
| 429 | { |
| 430 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 431 | }, |
| 432 | ], |
| 433 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 434 | "message": "A String", # A developer-facing error message, which should be in English. Any |
| 435 | # user-facing error message should be localized and sent in the |
| 436 | # google.rpc.Status.details field, or localized by the client. |
| 437 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 438 | "commitmentStartTime": "A String", # Output only. The start of the current commitment period. It is applicable only for |
| 439 | # ACTIVE capacity commitments. |
| 440 | "name": "A String", # Output only. The resource name of the capacity commitment, e.g., |
| 441 | # `projects/myproject/locations/US/capacityCommitments/123` |
| 442 | "renewalPlan": "A String", # The plan this capacity commitment is converted to after commitment_end_time |
| 443 | # passes. Once the plan is changed, committed period is extended according to |
| 444 | # commitment plan. Only applicable for ANNUAL commitments. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 445 | "commitmentEndTime": "A String", # Output only. The end of the current commitment period. It is applicable only for ACTIVE |
| 446 | # capacity commitments. |
| 447 | "state": "A String", # Output only. State of the commitment. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 448 | }</pre> |
| 449 | </div> |
| 450 | |
| 451 | <div class="method"> |
| 452 | <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code> |
| 453 | <pre>Updates an existing capacity commitment. |
| 454 | |
| 455 | Only `plan` and `renewal_plan` fields can be updated. |
| 456 | |
| 457 | Plan can only be changed to a plan of a longer commitment period. |
| 458 | Attempting to change to a plan with shorter commitment period will fail |
| 459 | with the error code `google.rpc.Code.FAILED_PRECONDITION`. |
| 460 | |
| 461 | Args: |
| 462 | name: string, Output only. The resource name of the capacity commitment, e.g., |
| 463 | `projects/myproject/locations/US/capacityCommitments/123` (required) |
| 464 | body: object, The request body. |
| 465 | The object takes the form of: |
| 466 | |
| 467 | { # Capacity commitment is a way to purchase compute capacity for BigQuery jobs |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 468 | # (in the form of slots) with some committed period of usage. Annual |
| 469 | # commitments renew by default. Commitments can be removed after their |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 470 | # commitment end time passes. |
| 471 | # |
| 472 | # In order to remove annual commitment, its plan needs to be changed |
| 473 | # to monthly or flex first. |
| 474 | # |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 475 | # A capacity commitment resource exists as a child resource of the admin |
| 476 | # project. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 477 | "slotCount": "A String", # Number of slots in this commitment. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 478 | "plan": "A String", # Capacity commitment commitment plan. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 479 | "failureStatus": { # The `Status` type defines a logical error model that is suitable for # Output only. For FAILED commitment plan, provides the reason of failure. |
| 480 | # different programming environments, including REST APIs and RPC APIs. It is |
| 481 | # used by [gRPC](https://github.com/grpc). Each `Status` message contains |
| 482 | # three pieces of data: error code, error message, and error details. |
| 483 | # |
| 484 | # You can find out more about this error model and how to work with it in the |
| 485 | # [API Design Guide](https://cloud.google.com/apis/design/errors). |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 486 | "details": [ # A list of messages that carry the error details. There is a common set of |
| 487 | # message types for APIs to use. |
| 488 | { |
| 489 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 490 | }, |
| 491 | ], |
| 492 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 493 | "message": "A String", # A developer-facing error message, which should be in English. Any |
| 494 | # user-facing error message should be localized and sent in the |
| 495 | # google.rpc.Status.details field, or localized by the client. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 496 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 497 | "commitmentStartTime": "A String", # Output only. The start of the current commitment period. It is applicable only for |
| 498 | # ACTIVE capacity commitments. |
| 499 | "name": "A String", # Output only. The resource name of the capacity commitment, e.g., |
| 500 | # `projects/myproject/locations/US/capacityCommitments/123` |
| 501 | "renewalPlan": "A String", # The plan this capacity commitment is converted to after commitment_end_time |
| 502 | # passes. Once the plan is changed, committed period is extended according to |
| 503 | # commitment plan. Only applicable for ANNUAL commitments. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 504 | "commitmentEndTime": "A String", # Output only. The end of the current commitment period. It is applicable only for ACTIVE |
| 505 | # capacity commitments. |
| 506 | "state": "A String", # Output only. State of the commitment. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 507 | } |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 508 | |
| 509 | updateMask: string, Standard field mask for the set of fields to be updated. |
| 510 | x__xgafv: string, V1 error format. |
| 511 | Allowed values |
| 512 | 1 - v1 error format |
| 513 | 2 - v2 error format |
| 514 | |
| 515 | Returns: |
| 516 | An object of the form: |
| 517 | |
| 518 | { # Capacity commitment is a way to purchase compute capacity for BigQuery jobs |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 519 | # (in the form of slots) with some committed period of usage. Annual |
| 520 | # commitments renew by default. Commitments can be removed after their |
| 521 | # commitment end time passes. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 522 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 523 | # In order to remove annual commitment, its plan needs to be changed |
| 524 | # to monthly or flex first. |
| 525 | # |
| 526 | # A capacity commitment resource exists as a child resource of the admin |
| 527 | # project. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 528 | "slotCount": "A String", # Number of slots in this commitment. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 529 | "plan": "A String", # Capacity commitment commitment plan. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 530 | "failureStatus": { # The `Status` type defines a logical error model that is suitable for # Output only. For FAILED commitment plan, provides the reason of failure. |
| 531 | # different programming environments, including REST APIs and RPC APIs. It is |
| 532 | # used by [gRPC](https://github.com/grpc). Each `Status` message contains |
| 533 | # three pieces of data: error code, error message, and error details. |
| 534 | # |
| 535 | # You can find out more about this error model and how to work with it in the |
| 536 | # [API Design Guide](https://cloud.google.com/apis/design/errors). |
| 537 | "details": [ # A list of messages that carry the error details. There is a common set of |
| 538 | # message types for APIs to use. |
| 539 | { |
| 540 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 541 | }, |
| 542 | ], |
| 543 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 544 | "message": "A String", # A developer-facing error message, which should be in English. Any |
| 545 | # user-facing error message should be localized and sent in the |
| 546 | # google.rpc.Status.details field, or localized by the client. |
| 547 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 548 | "commitmentStartTime": "A String", # Output only. The start of the current commitment period. It is applicable only for |
| 549 | # ACTIVE capacity commitments. |
| 550 | "name": "A String", # Output only. The resource name of the capacity commitment, e.g., |
| 551 | # `projects/myproject/locations/US/capacityCommitments/123` |
| 552 | "renewalPlan": "A String", # The plan this capacity commitment is converted to after commitment_end_time |
| 553 | # passes. Once the plan is changed, committed period is extended according to |
| 554 | # commitment plan. Only applicable for ANNUAL commitments. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 555 | "commitmentEndTime": "A String", # Output only. The end of the current commitment period. It is applicable only for ACTIVE |
| 556 | # capacity commitments. |
| 557 | "state": "A String", # Output only. State of the commitment. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 558 | }</pre> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 559 | </div> |
| 560 | |
| 561 | <div class="method"> |
| 562 | <code class="details" id="split">split(name, body=None, x__xgafv=None)</code> |
| 563 | <pre>Splits capacity commitment to two commitments of the same plan and |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 564 | `commitment_end_time`. |
| 565 | |
| 566 | A common use case is to enable downgrading commitments. |
| 567 | |
| 568 | For example, in order to downgrade from 10000 slots to 8000, you might |
| 569 | split a 10000 capacity commitment into commitments of 2000 and 8000. Then, |
| 570 | you would change the plan of the first one to `FLEX` and then delete it. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 571 | |
| 572 | Args: |
| 573 | name: string, Required. The resource name e.g.,: |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 574 | `projects/myproject/locations/US/capacityCommitments/123` (required) |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 575 | body: object, The request body. |
| 576 | The object takes the form of: |
| 577 | |
| 578 | { # The request for ReservationService.SplitCapacityCommitment. |
| 579 | "slotCount": "A String", # Number of slots in the capacity commitment after the split. |
| 580 | } |
| 581 | |
| 582 | x__xgafv: string, V1 error format. |
| 583 | Allowed values |
| 584 | 1 - v1 error format |
| 585 | 2 - v2 error format |
| 586 | |
| 587 | Returns: |
| 588 | An object of the form: |
| 589 | |
| 590 | { # The response for ReservationService.SplitCapacityCommitment. |
| 591 | "second": { # Capacity commitment is a way to purchase compute capacity for BigQuery jobs # Second capacity commitment, result of a split. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 592 | # (in the form of slots) with some committed period of usage. Annual |
| 593 | # commitments renew by default. Commitments can be removed after their |
| 594 | # commitment end time passes. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 595 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 596 | # In order to remove annual commitment, its plan needs to be changed |
| 597 | # to monthly or flex first. |
| 598 | # |
| 599 | # A capacity commitment resource exists as a child resource of the admin |
| 600 | # project. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 601 | "slotCount": "A String", # Number of slots in this commitment. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 602 | "plan": "A String", # Capacity commitment commitment plan. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 603 | "failureStatus": { # The `Status` type defines a logical error model that is suitable for # Output only. For FAILED commitment plan, provides the reason of failure. |
| 604 | # different programming environments, including REST APIs and RPC APIs. It is |
| 605 | # used by [gRPC](https://github.com/grpc). Each `Status` message contains |
| 606 | # three pieces of data: error code, error message, and error details. |
| 607 | # |
| 608 | # You can find out more about this error model and how to work with it in the |
| 609 | # [API Design Guide](https://cloud.google.com/apis/design/errors). |
| 610 | "details": [ # A list of messages that carry the error details. There is a common set of |
| 611 | # message types for APIs to use. |
| 612 | { |
| 613 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 614 | }, |
| 615 | ], |
| 616 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 617 | "message": "A String", # A developer-facing error message, which should be in English. Any |
| 618 | # user-facing error message should be localized and sent in the |
| 619 | # google.rpc.Status.details field, or localized by the client. |
| 620 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 621 | "commitmentStartTime": "A String", # Output only. The start of the current commitment period. It is applicable only for |
| 622 | # ACTIVE capacity commitments. |
| 623 | "name": "A String", # Output only. The resource name of the capacity commitment, e.g., |
| 624 | # `projects/myproject/locations/US/capacityCommitments/123` |
| 625 | "renewalPlan": "A String", # The plan this capacity commitment is converted to after commitment_end_time |
| 626 | # passes. Once the plan is changed, committed period is extended according to |
| 627 | # commitment plan. Only applicable for ANNUAL commitments. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 628 | "commitmentEndTime": "A String", # Output only. The end of the current commitment period. It is applicable only for ACTIVE |
| 629 | # capacity commitments. |
| 630 | "state": "A String", # Output only. State of the commitment. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 631 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 632 | "first": { # Capacity commitment is a way to purchase compute capacity for BigQuery jobs # First capacity commitment, result of a split. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 633 | # (in the form of slots) with some committed period of usage. Annual |
| 634 | # commitments renew by default. Commitments can be removed after their |
| 635 | # commitment end time passes. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 636 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 637 | # In order to remove annual commitment, its plan needs to be changed |
| 638 | # to monthly or flex first. |
| 639 | # |
| 640 | # A capacity commitment resource exists as a child resource of the admin |
| 641 | # project. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 642 | "slotCount": "A String", # Number of slots in this commitment. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 643 | "plan": "A String", # Capacity commitment commitment plan. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 644 | "failureStatus": { # The `Status` type defines a logical error model that is suitable for # Output only. For FAILED commitment plan, provides the reason of failure. |
| 645 | # different programming environments, including REST APIs and RPC APIs. It is |
| 646 | # used by [gRPC](https://github.com/grpc). Each `Status` message contains |
| 647 | # three pieces of data: error code, error message, and error details. |
| 648 | # |
| 649 | # You can find out more about this error model and how to work with it in the |
| 650 | # [API Design Guide](https://cloud.google.com/apis/design/errors). |
| 651 | "details": [ # A list of messages that carry the error details. There is a common set of |
| 652 | # message types for APIs to use. |
| 653 | { |
| 654 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 655 | }, |
| 656 | ], |
| 657 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 658 | "message": "A String", # A developer-facing error message, which should be in English. Any |
| 659 | # user-facing error message should be localized and sent in the |
| 660 | # google.rpc.Status.details field, or localized by the client. |
| 661 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 662 | "commitmentStartTime": "A String", # Output only. The start of the current commitment period. It is applicable only for |
| 663 | # ACTIVE capacity commitments. |
| 664 | "name": "A String", # Output only. The resource name of the capacity commitment, e.g., |
| 665 | # `projects/myproject/locations/US/capacityCommitments/123` |
| 666 | "renewalPlan": "A String", # The plan this capacity commitment is converted to after commitment_end_time |
| 667 | # passes. Once the plan is changed, committed period is extended according to |
| 668 | # commitment plan. Only applicable for ANNUAL commitments. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 669 | "commitmentEndTime": "A String", # Output only. The end of the current commitment period. It is applicable only for ACTIVE |
| 670 | # capacity commitments. |
| 671 | "state": "A String", # Output only. State of the commitment. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 672 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 673 | }</pre> |
| 674 | </div> |
| 675 | |
| 676 | </body></html> |