Skip to content

Commit 927d63b

Browse files
1 parent fddf24f commit 927d63b

File tree

16 files changed

+962
-12
lines changed

16 files changed

+962
-12
lines changed

clients/google-api-services-file/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-file</artifactId>
25-
<version>v1-rev20240608-2.0.0</version>
25+
<version>v1-rev20240619-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-file:v1-rev20240608-2.0.0'
38+
implementation 'com.google.apis:google-api-services-file:v1-rev20240619-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-file/v1/2.0.0/com/google/api/services/file/v1/model/FileShareConfig.java

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,20 @@ public final class FileShareConfig extends com.google.api.client.json.GenericJso
5252
@com.google.api.client.util.Key
5353
private java.util.List<NfsExportOptions> nfsExportOptions;
5454

55+
/**
56+
* Optional. Used to configure performance.
57+
* The value may be {@code null}.
58+
*/
59+
@com.google.api.client.util.Key
60+
private PerformanceConfig performanceConfig;
61+
62+
/**
63+
* Output only. Used for getting performance limits.
64+
* The value may be {@code null}.
65+
*/
66+
@com.google.api.client.util.Key
67+
private PerformanceLimits performanceLimits;
68+
5569
/**
5670
* The resource name of the backup, in the format
5771
* `projects/{project_number}/locations/{location_id}/backups/{backup_id}`, that this file share
@@ -116,6 +130,40 @@ public FileShareConfig setNfsExportOptions(java.util.List<NfsExportOptions> nfsE
116130
return this;
117131
}
118132

133+
/**
134+
* Optional. Used to configure performance.
135+
* @return value or {@code null} for none
136+
*/
137+
public PerformanceConfig getPerformanceConfig() {
138+
return performanceConfig;
139+
}
140+
141+
/**
142+
* Optional. Used to configure performance.
143+
* @param performanceConfig performanceConfig or {@code null} for none
144+
*/
145+
public FileShareConfig setPerformanceConfig(PerformanceConfig performanceConfig) {
146+
this.performanceConfig = performanceConfig;
147+
return this;
148+
}
149+
150+
/**
151+
* Output only. Used for getting performance limits.
152+
* @return value or {@code null} for none
153+
*/
154+
public PerformanceLimits getPerformanceLimits() {
155+
return performanceLimits;
156+
}
157+
158+
/**
159+
* Output only. Used for getting performance limits.
160+
* @param performanceLimits performanceLimits or {@code null} for none
161+
*/
162+
public FileShareConfig setPerformanceLimits(PerformanceLimits performanceLimits) {
163+
this.performanceLimits = performanceLimits;
164+
return this;
165+
}
166+
119167
/**
120168
* The resource name of the backup, in the format
121169
* `projects/{project_number}/locations/{location_id}/backups/{backup_id}`, that this file share
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.file.v1.model;
18+
19+
/**
20+
* Fixed IOPS parameters.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Cloud Filestore API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class FixedIOPS extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Required. Maximum raw read IOPS.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
37+
private java.lang.Long maxReadIops;
38+
39+
/**
40+
* Required. Maximum raw read IOPS.
41+
* @return value or {@code null} for none
42+
*/
43+
public java.lang.Long getMaxReadIops() {
44+
return maxReadIops;
45+
}
46+
47+
/**
48+
* Required. Maximum raw read IOPS.
49+
* @param maxReadIops maxReadIops or {@code null} for none
50+
*/
51+
public FixedIOPS setMaxReadIops(java.lang.Long maxReadIops) {
52+
this.maxReadIops = maxReadIops;
53+
return this;
54+
}
55+
56+
@Override
57+
public FixedIOPS set(String fieldName, Object value) {
58+
return (FixedIOPS) super.set(fieldName, value);
59+
}
60+
61+
@Override
62+
public FixedIOPS clone() {
63+
return (FixedIOPS) super.clone();
64+
}
65+
66+
}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.file.v1.model;
18+
19+
/**
20+
* IOPS per capacity parameters.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Cloud Filestore API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class IOPSPerGB extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Required. Maximum read IOPS per GB.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
37+
private java.lang.Long maxReadIopsPerGb;
38+
39+
/**
40+
* Required. Maximum read IOPS per GB.
41+
* @return value or {@code null} for none
42+
*/
43+
public java.lang.Long getMaxReadIopsPerGb() {
44+
return maxReadIopsPerGb;
45+
}
46+
47+
/**
48+
* Required. Maximum read IOPS per GB.
49+
* @param maxReadIopsPerGb maxReadIopsPerGb or {@code null} for none
50+
*/
51+
public IOPSPerGB setMaxReadIopsPerGb(java.lang.Long maxReadIopsPerGb) {
52+
this.maxReadIopsPerGb = maxReadIopsPerGb;
53+
return this;
54+
}
55+
56+
@Override
57+
public IOPSPerGB set(String fieldName, Object value) {
58+
return (IOPSPerGB) super.set(fieldName, value);
59+
}
60+
61+
@Override
62+
public IOPSPerGB clone() {
63+
return (IOPSPerGB) super.clone();
64+
}
65+
66+
}
Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.file.v1.model;
18+
19+
/**
20+
* Performance configuration. Used for setting the performance configuration. Defaults to
21+
* `iops_by_capacity` if unset in instance creation.
22+
*
23+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
24+
* transmitted over HTTP when working with the Cloud Filestore API. For a detailed explanation see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class PerformanceConfig extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Choose a fixed provisioned IOPS value for the instance, which will remain constant regardless
35+
* of instance capacity. Value must be a multiple of 1000. If the chosen value is outside the
36+
* supported range for the instance's capacity during instance creation, instance creation will
37+
* fail with an `InvalidArgument` error. Similarly, if an instance capacity update would result in
38+
* a value outside the supported range, the update will fail with an `InvalidArgument` error.
39+
* The value may be {@code null}.
40+
*/
41+
@com.google.api.client.util.Key
42+
private FixedIOPS fixedIops;
43+
44+
/**
45+
* Automatically provision maximum available IOPS based on the capacity of the instance. Larger
46+
* instances will be granted more IOPS. If instance capacity is increased or decreased, IOPS will
47+
* be automatically adjusted upwards or downwards accordingly. The maximum available IOPS for a
48+
* given capacity is defined in Filestore documentation.
49+
* The value may be {@code null}.
50+
*/
51+
@com.google.api.client.util.Key
52+
private java.lang.Boolean iopsByCapacity;
53+
54+
/**
55+
* Provision IOPS dynamically based on the capacity of the instance. Provisioned read IOPS will be
56+
* calculated by by multiplying the capacity of the instance in GiB by the `iops_per_gb` value,
57+
* and rounding to the nearest 1000. For example, for a 1 TiB instance with an `iops_per_gb` value
58+
* of 15, the provisioned read IOPS would be `1024 * 15 = 15,360`, rounded to `15,000`. If the
59+
* calculated value is outside the supported range for the instance's capacity during instance
60+
* creation, instance creation will fail with an `InvalidArgument` error. Similarly, if an
61+
* instance capacity update would result in a value outside the supported range, the update will
62+
* fail with an `InvalidArgument` error.
63+
* The value may be {@code null}.
64+
*/
65+
@com.google.api.client.util.Key
66+
private IOPSPerGB iopsPerGb;
67+
68+
/**
69+
* Choose a fixed provisioned IOPS value for the instance, which will remain constant regardless
70+
* of instance capacity. Value must be a multiple of 1000. If the chosen value is outside the
71+
* supported range for the instance's capacity during instance creation, instance creation will
72+
* fail with an `InvalidArgument` error. Similarly, if an instance capacity update would result in
73+
* a value outside the supported range, the update will fail with an `InvalidArgument` error.
74+
* @return value or {@code null} for none
75+
*/
76+
public FixedIOPS getFixedIops() {
77+
return fixedIops;
78+
}
79+
80+
/**
81+
* Choose a fixed provisioned IOPS value for the instance, which will remain constant regardless
82+
* of instance capacity. Value must be a multiple of 1000. If the chosen value is outside the
83+
* supported range for the instance's capacity during instance creation, instance creation will
84+
* fail with an `InvalidArgument` error. Similarly, if an instance capacity update would result in
85+
* a value outside the supported range, the update will fail with an `InvalidArgument` error.
86+
* @param fixedIops fixedIops or {@code null} for none
87+
*/
88+
public PerformanceConfig setFixedIops(FixedIOPS fixedIops) {
89+
this.fixedIops = fixedIops;
90+
return this;
91+
}
92+
93+
/**
94+
* Automatically provision maximum available IOPS based on the capacity of the instance. Larger
95+
* instances will be granted more IOPS. If instance capacity is increased or decreased, IOPS will
96+
* be automatically adjusted upwards or downwards accordingly. The maximum available IOPS for a
97+
* given capacity is defined in Filestore documentation.
98+
* @return value or {@code null} for none
99+
*/
100+
public java.lang.Boolean getIopsByCapacity() {
101+
return iopsByCapacity;
102+
}
103+
104+
/**
105+
* Automatically provision maximum available IOPS based on the capacity of the instance. Larger
106+
* instances will be granted more IOPS. If instance capacity is increased or decreased, IOPS will
107+
* be automatically adjusted upwards or downwards accordingly. The maximum available IOPS for a
108+
* given capacity is defined in Filestore documentation.
109+
* @param iopsByCapacity iopsByCapacity or {@code null} for none
110+
*/
111+
public PerformanceConfig setIopsByCapacity(java.lang.Boolean iopsByCapacity) {
112+
this.iopsByCapacity = iopsByCapacity;
113+
return this;
114+
}
115+
116+
/**
117+
* Provision IOPS dynamically based on the capacity of the instance. Provisioned read IOPS will be
118+
* calculated by by multiplying the capacity of the instance in GiB by the `iops_per_gb` value,
119+
* and rounding to the nearest 1000. For example, for a 1 TiB instance with an `iops_per_gb` value
120+
* of 15, the provisioned read IOPS would be `1024 * 15 = 15,360`, rounded to `15,000`. If the
121+
* calculated value is outside the supported range for the instance's capacity during instance
122+
* creation, instance creation will fail with an `InvalidArgument` error. Similarly, if an
123+
* instance capacity update would result in a value outside the supported range, the update will
124+
* fail with an `InvalidArgument` error.
125+
* @return value or {@code null} for none
126+
*/
127+
public IOPSPerGB getIopsPerGb() {
128+
return iopsPerGb;
129+
}
130+
131+
/**
132+
* Provision IOPS dynamically based on the capacity of the instance. Provisioned read IOPS will be
133+
* calculated by by multiplying the capacity of the instance in GiB by the `iops_per_gb` value,
134+
* and rounding to the nearest 1000. For example, for a 1 TiB instance with an `iops_per_gb` value
135+
* of 15, the provisioned read IOPS would be `1024 * 15 = 15,360`, rounded to `15,000`. If the
136+
* calculated value is outside the supported range for the instance's capacity during instance
137+
* creation, instance creation will fail with an `InvalidArgument` error. Similarly, if an
138+
* instance capacity update would result in a value outside the supported range, the update will
139+
* fail with an `InvalidArgument` error.
140+
* @param iopsPerGb iopsPerGb or {@code null} for none
141+
*/
142+
public PerformanceConfig setIopsPerGb(IOPSPerGB iopsPerGb) {
143+
this.iopsPerGb = iopsPerGb;
144+
return this;
145+
}
146+
147+
@Override
148+
public PerformanceConfig set(String fieldName, Object value) {
149+
return (PerformanceConfig) super.set(fieldName, value);
150+
}
151+
152+
@Override
153+
public PerformanceConfig clone() {
154+
return (PerformanceConfig) super.clone();
155+
}
156+
157+
}

0 commit comments

Comments
 (0)