Skip to content

Commit 3e12a42

Browse files
committed
feat(sidekick/rust): Generate samples for standard get RPCs
1 parent bc2d929 commit 3e12a42

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+
{{#StandardGetInfo}}
17+
/// .set_{{ResourceNameRequestField.Codec.SetterName}}(resource_name)
18+
{{/StandardGetInfo}}
1619
{{^IsStandardMethod}}
1720
/// .with_request(request)
1821
{{/IsStandardMethod}}

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+
{{#StandardGetInfo}}
17+
/// client: &{{Service.Codec.Name}},
18+
/// resource_name: &str,
19+
{{/StandardGetInfo}}
1620
{{^IsStandardMethod}}
1721
/// client: &{{Service.Codec.Name}},
1822
/// request: {{InputType.Codec.Name}},

0 commit comments

Comments
 (0)