| 1 |
{ |
| 2 |
"clientLibrary": { |
| 3 |
"name": "cloud.google.com/go/cloudquotas/apiv1", |
| 4 |
"version": "1.4.0", |
| 5 |
"language": "GO", |
| 6 |
"apis": [ |
| 7 |
{ |
| 8 |
"id": "google.api.cloudquotas.v1", |
| 9 |
"version": "v1" |
| 10 |
} |
| 11 |
] |
| 12 |
}, |
| 13 |
"snippets": [ |
| 14 |
{ |
| 15 |
"regionTag": "cloudquotas_v1_generated_CloudQuotas_CreateQuotaPreference_sync", |
| 16 |
"title": "cloudquotas CreateQuotaPreference Sample", |
| 17 |
"description": "CreateQuotaPreference creates a new QuotaPreference that declares the desired value for a quota.", |
| 18 |
"file": "Client/CreateQuotaPreference/main.go", |
| 19 |
"language": "GO", |
| 20 |
"clientMethod": { |
| 21 |
"shortName": "CreateQuotaPreference", |
| 22 |
"fullName": "google.api.cloudquotas.v1.Client.CreateQuotaPreference", |
| 23 |
"parameters": [ |
| 24 |
{ |
| 25 |
"type": "context.Context", |
| 26 |
"name": "ctx" |
| 27 |
}, |
| 28 |
{ |
| 29 |
"type": "cloudquotaspb.CreateQuotaPreferenceRequest", |
| 30 |
"name": "req" |
| 31 |
}, |
| 32 |
{ |
| 33 |
"type": "...gax.CallOption", |
| 34 |
"name": "opts" |
| 35 |
} |
| 36 |
], |
| 37 |
"resultType": "*cloudquotaspb.QuotaPreference", |
| 38 |
"client": { |
| 39 |
"shortName": "Client", |
| 40 |
"fullName": "google.api.cloudquotas.v1.Client" |
| 41 |
}, |
| 42 |
"method": { |
| 43 |
"shortName": "CreateQuotaPreference", |
| 44 |
"fullName": "google.api.cloudquotas.v1.CloudQuotas.CreateQuotaPreference", |
| 45 |
"service": { |
| 46 |
"shortName": "CloudQuotas", |
| 47 |
"fullName": "google.api.cloudquotas.v1.CloudQuotas" |
| 48 |
} |
| 49 |
} |
| 50 |
}, |
| 51 |
"origin": "API_DEFINITION", |
| 52 |
"segments": [ |
| 53 |
{ |
| 54 |
"start": 18, |
| 55 |
"end": 53, |
| 56 |
"type": "FULL" |
| 57 |
} |
| 58 |
] |
| 59 |
}, |
| 60 |
{ |
| 61 |
"regionTag": "cloudquotas_v1_generated_CloudQuotas_GetQuotaInfo_sync", |
| 62 |
"title": "cloudquotas GetQuotaInfo Sample", |
| 63 |
"description": "GetQuotaInfo retrieve the QuotaInfo of a quota for a project, folder or organization.", |
| 64 |
"file": "Client/GetQuotaInfo/main.go", |
| 65 |
"language": "GO", |
| 66 |
"clientMethod": { |
| 67 |
"shortName": "GetQuotaInfo", |
| 68 |
"fullName": "google.api.cloudquotas.v1.Client.GetQuotaInfo", |
| 69 |
"parameters": [ |
| 70 |
{ |
| 71 |
"type": "context.Context", |
| 72 |
"name": "ctx" |
| 73 |
}, |
| 74 |
{ |
| 75 |
"type": "cloudquotaspb.GetQuotaInfoRequest", |
| 76 |
"name": "req" |
| 77 |
}, |
| 78 |
{ |
| 79 |
"type": "...gax.CallOption", |
| 80 |
"name": "opts" |
| 81 |
} |
| 82 |
], |
| 83 |
"resultType": "*cloudquotaspb.QuotaInfo", |
| 84 |
"client": { |
| 85 |
"shortName": "Client", |
| 86 |
"fullName": "google.api.cloudquotas.v1.Client" |
| 87 |
}, |
| 88 |
"method": { |
| 89 |
"shortName": "GetQuotaInfo", |
| 90 |
"fullName": "google.api.cloudquotas.v1.CloudQuotas.GetQuotaInfo", |
| 91 |
"service": { |
| 92 |
"shortName": "CloudQuotas", |
| 93 |
"fullName": "google.api.cloudquotas.v1.CloudQuotas" |
| 94 |
} |
| 95 |
} |
| 96 |
}, |
| 97 |
"origin": "API_DEFINITION", |
| 98 |
"segments": [ |
| 99 |
{ |
| 100 |
"start": 18, |
| 101 |
"end": 53, |
| 102 |
"type": "FULL" |
| 103 |
} |
| 104 |
] |
| 105 |
}, |
| 106 |
{ |
| 107 |
"regionTag": "cloudquotas_v1_generated_CloudQuotas_GetQuotaPreference_sync", |
| 108 |
"title": "cloudquotas GetQuotaPreference Sample", |
| 109 |
"description": "GetQuotaPreference gets details of a single QuotaPreference.", |
| 110 |
"file": "Client/GetQuotaPreference/main.go", |
| 111 |
"language": "GO", |
| 112 |
"clientMethod": { |
| 113 |
"shortName": "GetQuotaPreference", |
| 114 |
"fullName": "google.api.cloudquotas.v1.Client.GetQuotaPreference", |
| 115 |
"parameters": [ |
| 116 |
{ |
| 117 |
"type": "context.Context", |
| 118 |
"name": "ctx" |
| 119 |
}, |
| 120 |
{ |
| 121 |
"type": "cloudquotaspb.GetQuotaPreferenceRequest", |
| 122 |
"name": "req" |
| 123 |
}, |
| 124 |
{ |
| 125 |
"type": "...gax.CallOption", |
| 126 |
"name": "opts" |
| 127 |
} |
| 128 |
], |
| 129 |
"resultType": "*cloudquotaspb.QuotaPreference", |
| 130 |
"client": { |
| 131 |
"shortName": "Client", |
| 132 |
"fullName": "google.api.cloudquotas.v1.Client" |
| 133 |
}, |
| 134 |
"method": { |
| 135 |
"shortName": "GetQuotaPreference", |
| 136 |
"fullName": "google.api.cloudquotas.v1.CloudQuotas.GetQuotaPreference", |
| 137 |
"service": { |
| 138 |
"shortName": "CloudQuotas", |
| 139 |
"fullName": "google.api.cloudquotas.v1.CloudQuotas" |
| 140 |
} |
| 141 |
} |
| 142 |
}, |
| 143 |
"origin": "API_DEFINITION", |
| 144 |
"segments": [ |
| 145 |
{ |
| 146 |
"start": 18, |
| 147 |
"end": 53, |
| 148 |
"type": "FULL" |
| 149 |
} |
| 150 |
] |
| 151 |
}, |
| 152 |
{ |
| 153 |
"regionTag": "cloudquotas_v1_generated_CloudQuotas_ListQuotaInfos_sync", |
| 154 |
"title": "cloudquotas ListQuotaInfos Sample", |
| 155 |
"description": "ListQuotaInfos lists QuotaInfos of all quotas for a given project, folder or organization.", |
| 156 |
"file": "Client/ListQuotaInfos/main.go", |
| 157 |
"language": "GO", |
| 158 |
"clientMethod": { |
| 159 |
"shortName": "ListQuotaInfos", |
| 160 |
"fullName": "google.api.cloudquotas.v1.Client.ListQuotaInfos", |
| 161 |
"parameters": [ |
| 162 |
{ |
| 163 |
"type": "context.Context", |
| 164 |
"name": "ctx" |
| 165 |
}, |
| 166 |
{ |
| 167 |
"type": "cloudquotaspb.ListQuotaInfosRequest", |
| 168 |
"name": "req" |
| 169 |
}, |
| 170 |
{ |
| 171 |
"type": "...gax.CallOption", |
| 172 |
"name": "opts" |
| 173 |
} |
| 174 |
], |
| 175 |
"resultType": "QuotaInfoIterator", |
| 176 |
"client": { |
| 177 |
"shortName": "Client", |
| 178 |
"fullName": "google.api.cloudquotas.v1.Client" |
| 179 |
}, |
| 180 |
"method": { |
| 181 |
"shortName": "ListQuotaInfos", |
| 182 |
"fullName": "google.api.cloudquotas.v1.CloudQuotas.ListQuotaInfos", |
| 183 |
"service": { |
| 184 |
"shortName": "CloudQuotas", |
| 185 |
"fullName": "google.api.cloudquotas.v1.CloudQuotas" |
| 186 |
} |
| 187 |
} |
| 188 |
}, |
| 189 |
"origin": "API_DEFINITION", |
| 190 |
"segments": [ |
| 191 |
{ |
| 192 |
"start": 18, |
| 193 |
"end": 66, |
| 194 |
"type": "FULL" |
| 195 |
} |
| 196 |
] |
| 197 |
}, |
| 198 |
{ |
| 199 |
"regionTag": "cloudquotas_v1_generated_CloudQuotas_ListQuotaPreferences_sync", |
| 200 |
"title": "cloudquotas ListQuotaPreferences Sample", |
| 201 |
"description": "ListQuotaPreferences lists QuotaPreferences in a given project, folder or organization.", |
| 202 |
"file": "Client/ListQuotaPreferences/main.go", |
| 203 |
"language": "GO", |
| 204 |
"clientMethod": { |
| 205 |
"shortName": "ListQuotaPreferences", |
| 206 |
"fullName": "google.api.cloudquotas.v1.Client.ListQuotaPreferences", |
| 207 |
"parameters": [ |
| 208 |
{ |
| 209 |
"type": "context.Context", |
| 210 |
"name": "ctx" |
| 211 |
}, |
| 212 |
{ |
| 213 |
"type": "cloudquotaspb.ListQuotaPreferencesRequest", |
| 214 |
"name": "req" |
| 215 |
}, |
| 216 |
{ |
| 217 |
"type": "...gax.CallOption", |
| 218 |
"name": "opts" |
| 219 |
} |
| 220 |
], |
| 221 |
"resultType": "QuotaPreferenceIterator", |
| 222 |
"client": { |
| 223 |
"shortName": "Client", |
| 224 |
"fullName": "google.api.cloudquotas.v1.Client" |
| 225 |
}, |
| 226 |
"method": { |
| 227 |
"shortName": "ListQuotaPreferences", |
| 228 |
"fullName": "google.api.cloudquotas.v1.CloudQuotas.ListQuotaPreferences", |
| 229 |
"service": { |
| 230 |
"shortName": "CloudQuotas", |
| 231 |
"fullName": "google.api.cloudquotas.v1.CloudQuotas" |
| 232 |
} |
| 233 |
} |
| 234 |
}, |
| 235 |
"origin": "API_DEFINITION", |
| 236 |
"segments": [ |
| 237 |
{ |
| 238 |
"start": 18, |
| 239 |
"end": 66, |
| 240 |
"type": "FULL" |
| 241 |
} |
| 242 |
] |
| 243 |
}, |
| 244 |
{ |
| 245 |
"regionTag": "cloudquotas_v1_generated_CloudQuotas_UpdateQuotaPreference_sync", |
| 246 |
"title": "cloudquotas UpdateQuotaPreference Sample", |
| 247 |
"description": "UpdateQuotaPreference updates the parameters of a single QuotaPreference. It can updates the\nconfig in any states, not just the ones pending approval.", |
| 248 |
"file": "Client/UpdateQuotaPreference/main.go", |
| 249 |
"language": "GO", |
| 250 |
"clientMethod": { |
| 251 |
"shortName": "UpdateQuotaPreference", |
| 252 |
"fullName": "google.api.cloudquotas.v1.Client.UpdateQuotaPreference", |
| 253 |
"parameters": [ |
| 254 |
{ |
| 255 |
"type": "context.Context", |
| 256 |
"name": "ctx" |
| 257 |
}, |
| 258 |
{ |
| 259 |
"type": "cloudquotaspb.UpdateQuotaPreferenceRequest", |
| 260 |
"name": "req" |
| 261 |
}, |
| 262 |
{ |
| 263 |
"type": "...gax.CallOption", |
| 264 |
"name": "opts" |
| 265 |
} |
| 266 |
], |
| 267 |
"resultType": "*cloudquotaspb.QuotaPreference", |
| 268 |
"client": { |
| 269 |
"shortName": "Client", |
| 270 |
"fullName": "google.api.cloudquotas.v1.Client" |
| 271 |
}, |
| 272 |
"method": { |
| 273 |
"shortName": "UpdateQuotaPreference", |
| 274 |
"fullName": "google.api.cloudquotas.v1.CloudQuotas.UpdateQuotaPreference", |
| 275 |
"service": { |
| 276 |
"shortName": "CloudQuotas", |
| 277 |
"fullName": "google.api.cloudquotas.v1.CloudQuotas" |
| 278 |
} |
| 279 |
} |
| 280 |
}, |
| 281 |
"origin": "API_DEFINITION", |
| 282 |
"segments": [ |
| 283 |
{ |
| 284 |
"start": 18, |
| 285 |
"end": 53, |
| 286 |
"type": "FULL" |
| 287 |
} |
| 288 |
] |
| 289 |
} |
| 290 |
] |
| 291 |
} |