Skip to content

Commit fc95e99

Browse files
committed
feat(sidekick/rust): Generate samples for standard get RPCs
1 parent 226df1e commit fc95e99

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

internal/sidekick/rust/templates/common/client_method_samples/builder_fields.mustache

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
See the License for the specific language governing permissions and
1414
limitations under the License.
1515
}}
16+
{{#AIPStandardGetInfo}}
17+
/// .set_{{ResourceNameRequestField.Codec.SetterName}}(resource_name)
18+
{{/AIPStandardGetInfo}}
1619
{{^IsAIPStandard}}
1720
/// /* set fields */
1821
{{/IsAIPStandard}}

internal/sidekick/rust/templates/common/client_method_samples/parameters.mustache

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
See the License for the specific language governing permissions and
1414
limitations under the License.
1515
}}
16+
{{#AIPStandardGetInfo}}
17+
/// client: &{{Service.Codec.Name}},
18+
/// resource_name: &str
19+
{{/AIPStandardGetInfo}}
1620
{{^IsAIPStandard}}
1721
/// client: &{{Service.Codec.Name}}
1822
{{/IsAIPStandard}}

0 commit comments

Comments
 (0)