3030public final class ResourceRequirements extends com .google .api .client .json .GenericJson {
3131
3232 /**
33- * Limits describes the maximum amount of compute resources allowed. Only 'cpu' and 'memory' keys
34- * are supported. * For supported 'cpu' values, go to
33+ * Limits describes the maximum amount of compute resources allowed. Only 'cpu', 'memory' and
34+ * 'nvidia.com/gpu' keys are supported. * For supported 'cpu' values, go to
3535 * https://cloud.google.com/run/docs/configuring/cpu. * For supported 'memory' values and syntax,
36- * go to https://cloud.google.com/run/docs/configuring/memory-limits
36+ * go to https://cloud.google.com/run/docs/configuring/memory-limits. * The only supported
37+ * 'nvidia.com/gpu' value is '1'.
3738 * The value may be {@code null}.
3839 */
3940 @ com .google .api .client .util .Key
@@ -51,21 +52,23 @@ public final class ResourceRequirements extends com.google.api.client.json.Gener
5152 private java .util .Map <String , java .lang .String > requests ;
5253
5354 /**
54- * Limits describes the maximum amount of compute resources allowed. Only 'cpu' and 'memory' keys
55- * are supported. * For supported 'cpu' values, go to
55+ * Limits describes the maximum amount of compute resources allowed. Only 'cpu', 'memory' and
56+ * 'nvidia.com/gpu' keys are supported. * For supported 'cpu' values, go to
5657 * https://cloud.google.com/run/docs/configuring/cpu. * For supported 'memory' values and syntax,
57- * go to https://cloud.google.com/run/docs/configuring/memory-limits
58+ * go to https://cloud.google.com/run/docs/configuring/memory-limits. * The only supported
59+ * 'nvidia.com/gpu' value is '1'.
5860 * @return value or {@code null} for none
5961 */
6062 public java .util .Map <String , java .lang .String > getLimits () {
6163 return limits ;
6264 }
6365
6466 /**
65- * Limits describes the maximum amount of compute resources allowed. Only 'cpu' and 'memory' keys
66- * are supported. * For supported 'cpu' values, go to
67+ * Limits describes the maximum amount of compute resources allowed. Only 'cpu', 'memory' and
68+ * 'nvidia.com/gpu' keys are supported. * For supported 'cpu' values, go to
6769 * https://cloud.google.com/run/docs/configuring/cpu. * For supported 'memory' values and syntax,
68- * go to https://cloud.google.com/run/docs/configuring/memory-limits
70+ * go to https://cloud.google.com/run/docs/configuring/memory-limits. * The only supported
71+ * 'nvidia.com/gpu' value is '1'.
6972 * @param limits limits or {@code null} for none
7073 */
7174 public ResourceRequirements setLimits (java .util .Map <String , java .lang .String > limits ) {
0 commit comments