|
1 | 1 | type: com.google.api.codegen.ConfigProto |
2 | | -config_schema_version: 1.0.0 |
3 | | -# The settings of generated code in a specific language. |
4 | | -language_settings: |
5 | | - python: |
6 | | - package_name: google.home.graph_v1.gapic |
7 | | - go: |
8 | | - package_name: google.golang.org/api/homegraph/v1 |
9 | | - csharp: |
10 | | - package_name: Google.Home.Graph.V1 |
11 | | - ruby: |
12 | | - package_name: Google::Home::Graph::V1 |
13 | | - php: |
14 | | - package_name: Google\Home\Graph\V1 |
15 | | - nodejs: |
16 | | - package_name: google.home.graph.v1 |
17 | | -# A list of API interface configurations. |
18 | | -interfaces: |
19 | | - # The fully qualified name of the API interface. |
20 | | -- name: google.home.graph.v1.HomeGraphApiService |
21 | | - # A list of resource collection configurations. |
22 | | - # Consists of a name_pattern and an entity_name. |
23 | | - # The name_pattern is a pattern to describe the names of the resources of this |
24 | | - # collection, using the platform's conventions for URI patterns. A generator |
25 | | - # may use this to generate methods to compose and decompose such names. The |
26 | | - # pattern should use named placeholders as in `shelves/{shelf}/books/{book}`; |
27 | | - # those will be taken as hints for the parameter names of the generated |
28 | | - # methods. If empty, no name methods are generated. |
29 | | - # The entity_name is the name to be used as a basis for generated methods and |
30 | | - # classes. |
31 | | - collections: |
32 | | - - name_pattern: agentUsers/{agent_user_path=**} |
33 | | - entity_name: agent_user_path |
34 | | - # Definition for retryable codes. |
35 | | - retry_codes_def: |
36 | | - - name: idempotent |
37 | | - retry_codes: |
38 | | - - UNAVAILABLE |
39 | | - - DEADLINE_EXCEEDED |
40 | | - - name: non_idempotent |
41 | | - retry_codes: [] |
42 | | - # Definition for retry/backoff parameters. |
43 | | - retry_params_def: |
44 | | - - name: default |
45 | | - initial_retry_delay_millis: 100 |
46 | | - retry_delay_multiplier: 1.3 |
47 | | - max_retry_delay_millis: 60000 |
48 | | - initial_rpc_timeout_millis: 20000 |
49 | | - rpc_timeout_multiplier: 1 |
50 | | - max_rpc_timeout_millis: 20000 |
51 | | - total_timeout_millis: 600000 |
52 | | - # A list of method configurations. |
53 | | - # Common properties: |
54 | | - # |
55 | | - # name - The simple name of the method. |
56 | | - # |
57 | | - # flattening - Specifies the configuration for parameter flattening. |
58 | | - # Describes the parameter groups for which a generator should produce method |
59 | | - # overloads which allow a client to directly pass request message fields as |
60 | | - # method parameters. This information may or may not be used, depending on |
61 | | - # the target language. |
62 | | - # Consists of groups, which each represent a list of parameters to be |
63 | | - # flattened. Each parameter listed must be a field of the request message. |
64 | | - # |
65 | | - # required_fields - Fields that are always required for a request to be |
66 | | - # valid. |
67 | | - # |
68 | | - # resource_name_treatment - An enum that specifies how to treat the resource |
69 | | - # name formats defined in the field_name_patterns and |
70 | | - # response_field_name_patterns fields. |
71 | | - # UNSET: default value |
72 | | - # NONE: the collection configs will not be used by the generated code. |
73 | | - # VALIDATE: string fields will be validated by the client against the |
74 | | - # specified resource name formats. |
75 | | - # STATIC_TYPES: the client will use generated types for resource names. |
76 | | - # |
77 | | - # page_streaming - Specifies the configuration for paging. |
78 | | - # Describes information for generating a method which transforms a paging |
79 | | - # list RPC into a stream of resources. |
80 | | - # Consists of a request and a response. |
81 | | - # The request specifies request information of the list method. It defines |
82 | | - # which fields match the paging pattern in the request. The request consists |
83 | | - # of a page_size_field and a token_field. The page_size_field is the name of |
84 | | - # the optional field specifying the maximum number of elements to be |
85 | | - # returned in the response. The token_field is the name of the field in the |
86 | | - # request containing the page token. |
87 | | - # The response specifies response information of the list method. It defines |
88 | | - # which fields match the paging pattern in the response. The response |
89 | | - # consists of a token_field and a resources_field. The token_field is the |
90 | | - # name of the field in the response containing the next page token. The |
91 | | - # resources_field is the name of the field in the response containing the |
92 | | - # list of resources belonging to the page. |
93 | | - # |
94 | | - # retry_codes_name - Specifies the configuration for retryable codes. The |
95 | | - # name must be defined in interfaces.retry_codes_def. |
96 | | - # |
97 | | - # retry_params_name - Specifies the configuration for retry/backoff |
98 | | - # parameters. The name must be defined in interfaces.retry_params_def. |
99 | | - # |
100 | | - # field_name_patterns - Maps the field name of the request type to |
101 | | - # entity_name of interfaces.collections. |
102 | | - # Specifies the string pattern that the field must follow. |
103 | | - # |
104 | | - # timeout_millis - Specifies the default timeout for a non-retrying call. If |
105 | | - # the call is retrying, refer to retry_params_name instead. |
106 | | - methods: |
107 | | - - name: RequestSyncDevices |
108 | | - flattening: |
109 | | - groups: |
110 | | - - parameters: |
111 | | - - agent_user_id |
112 | | - required_fields: |
113 | | - - agent_user_id |
114 | | - retry_codes_name: non_idempotent |
115 | | - retry_params_name: default |
116 | | - timeout_millis: 10000 |
117 | | - - name: ReportStateAndNotification |
118 | | - flattening: |
119 | | - groups: |
120 | | - - parameters: |
121 | | - - request_id |
122 | | - - event_id |
123 | | - - agent_user_id |
124 | | - - payload |
125 | | - required_fields: |
126 | | - - agent_user_id |
127 | | - - payload |
128 | | - retry_codes_name: non_idempotent |
129 | | - retry_params_name: default |
130 | | - timeout_millis: 10000 |
131 | | - - name: DeleteAgentUser |
132 | | - flattening: |
133 | | - groups: |
134 | | - - parameters: |
135 | | - - request_id |
136 | | - - agent_user_id |
137 | | - required_fields: |
138 | | - - agent_user_id |
139 | | - retry_codes_name: idempotent |
140 | | - retry_params_name: default |
141 | | - field_name_patterns: |
142 | | - agent_user_id: agent_user_path |
143 | | - timeout_millis: 10000 |
144 | | - - name: Query |
145 | | - flattening: |
146 | | - groups: |
147 | | - - parameters: |
148 | | - - request_id |
149 | | - - agent_user_id |
150 | | - - inputs |
151 | | - required_fields: |
152 | | - - agent_user_id |
153 | | - - inputs |
154 | | - retry_codes_name: idempotent |
155 | | - retry_params_name: default |
156 | | - timeout_millis: 10000 |
157 | | - - name: Sync |
158 | | - flattening: |
159 | | - groups: |
160 | | - - parameters: |
161 | | - - request_id |
162 | | - - agent_user_id |
163 | | - required_fields: |
164 | | - - agent_user_id |
165 | | - retry_codes_name: idempotent |
166 | | - retry_params_name: default |
167 | | - timeout_millis: 10000 |
| 2 | +config_schema_version: 2.0.0 |
0 commit comments