| 1 |
{ |
| 2 |
"clientLibrary": { |
| 3 |
"name": "cloud.google.com/go/locationfinder/apiv1", |
| 4 |
"version": "0.1.0", |
| 5 |
"language": "GO", |
| 6 |
"apis": [ |
| 7 |
{ |
| 8 |
"id": "google.cloud.locationfinder.v1", |
| 9 |
"version": "v1" |
| 10 |
} |
| 11 |
] |
| 12 |
}, |
| 13 |
"snippets": [ |
| 14 |
{ |
| 15 |
"regionTag": "cloudlocationfinder_v1_generated_CloudLocationFinder_GetCloudLocation_sync", |
| 16 |
"title": "cloudlocationfinder GetCloudLocation Sample", |
| 17 |
"description": "GetCloudLocation retrieves a resource containing information about a cloud location.", |
| 18 |
"file": "CloudLocationFinderClient/GetCloudLocation/main.go", |
| 19 |
"language": "GO", |
| 20 |
"clientMethod": { |
| 21 |
"shortName": "GetCloudLocation", |
| 22 |
"fullName": "google.cloud.locationfinder.v1.CloudLocationFinderClient.GetCloudLocation", |
| 23 |
"parameters": [ |
| 24 |
{ |
| 25 |
"type": "context.Context", |
| 26 |
"name": "ctx" |
| 27 |
}, |
| 28 |
{ |
| 29 |
"type": "locationfinderpb.GetCloudLocationRequest", |
| 30 |
"name": "req" |
| 31 |
}, |
| 32 |
{ |
| 33 |
"type": "...gax.CallOption", |
| 34 |
"name": "opts" |
| 35 |
} |
| 36 |
], |
| 37 |
"resultType": "*locationfinderpb.CloudLocation", |
| 38 |
"client": { |
| 39 |
"shortName": "CloudLocationFinderClient", |
| 40 |
"fullName": "google.cloud.locationfinder.v1.CloudLocationFinderClient" |
| 41 |
}, |
| 42 |
"method": { |
| 43 |
"shortName": "GetCloudLocation", |
| 44 |
"fullName": "google.cloud.locationfinder.v1.CloudLocationFinder.GetCloudLocation", |
| 45 |
"service": { |
| 46 |
"shortName": "CloudLocationFinder", |
| 47 |
"fullName": "google.cloud.locationfinder.v1.CloudLocationFinder" |
| 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": "cloudlocationfinder_v1_generated_CloudLocationFinder_GetLocation_sync", |
| 62 |
"title": "cloudlocationfinder GetLocation Sample", |
| 63 |
"description": "GetLocation gets information about a location.", |
| 64 |
"file": "CloudLocationFinderClient/GetLocation/main.go", |
| 65 |
"language": "GO", |
| 66 |
"clientMethod": { |
| 67 |
"shortName": "GetLocation", |
| 68 |
"fullName": "google.cloud.locationfinder.v1.CloudLocationFinderClient.GetLocation", |
| 69 |
"parameters": [ |
| 70 |
{ |
| 71 |
"type": "context.Context", |
| 72 |
"name": "ctx" |
| 73 |
}, |
| 74 |
{ |
| 75 |
"type": "locationpb.GetLocationRequest", |
| 76 |
"name": "req" |
| 77 |
}, |
| 78 |
{ |
| 79 |
"type": "...gax.CallOption", |
| 80 |
"name": "opts" |
| 81 |
} |
| 82 |
], |
| 83 |
"resultType": "*locationpb.Location", |
| 84 |
"client": { |
| 85 |
"shortName": "CloudLocationFinderClient", |
| 86 |
"fullName": "google.cloud.locationfinder.v1.CloudLocationFinderClient" |
| 87 |
}, |
| 88 |
"method": { |
| 89 |
"shortName": "GetLocation", |
| 90 |
"fullName": "google.cloud.location.Locations.GetLocation", |
| 91 |
"service": { |
| 92 |
"shortName": "Locations", |
| 93 |
"fullName": "google.cloud.location.Locations" |
| 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": "cloudlocationfinder_v1_generated_CloudLocationFinder_ListCloudLocations_sync", |
| 108 |
"title": "cloudlocationfinder ListCloudLocations Sample", |
| 109 |
"description": "ListCloudLocations lists cloud locations under a given project and location.", |
| 110 |
"file": "CloudLocationFinderClient/ListCloudLocations/main.go", |
| 111 |
"language": "GO", |
| 112 |
"clientMethod": { |
| 113 |
"shortName": "ListCloudLocations", |
| 114 |
"fullName": "google.cloud.locationfinder.v1.CloudLocationFinderClient.ListCloudLocations", |
| 115 |
"parameters": [ |
| 116 |
{ |
| 117 |
"type": "context.Context", |
| 118 |
"name": "ctx" |
| 119 |
}, |
| 120 |
{ |
| 121 |
"type": "locationfinderpb.ListCloudLocationsRequest", |
| 122 |
"name": "req" |
| 123 |
}, |
| 124 |
{ |
| 125 |
"type": "...gax.CallOption", |
| 126 |
"name": "opts" |
| 127 |
} |
| 128 |
], |
| 129 |
"resultType": "CloudLocationIterator", |
| 130 |
"client": { |
| 131 |
"shortName": "CloudLocationFinderClient", |
| 132 |
"fullName": "google.cloud.locationfinder.v1.CloudLocationFinderClient" |
| 133 |
}, |
| 134 |
"method": { |
| 135 |
"shortName": "ListCloudLocations", |
| 136 |
"fullName": "google.cloud.locationfinder.v1.CloudLocationFinder.ListCloudLocations", |
| 137 |
"service": { |
| 138 |
"shortName": "CloudLocationFinder", |
| 139 |
"fullName": "google.cloud.locationfinder.v1.CloudLocationFinder" |
| 140 |
} |
| 141 |
} |
| 142 |
}, |
| 143 |
"origin": "API_DEFINITION", |
| 144 |
"segments": [ |
| 145 |
{ |
| 146 |
"start": 18, |
| 147 |
"end": 66, |
| 148 |
"type": "FULL" |
| 149 |
} |
| 150 |
] |
| 151 |
}, |
| 152 |
{ |
| 153 |
"regionTag": "cloudlocationfinder_v1_generated_CloudLocationFinder_ListLocations_sync", |
| 154 |
"title": "cloudlocationfinder ListLocations Sample", |
| 155 |
"description": "ListLocations lists information about the supported locations for this service.", |
| 156 |
"file": "CloudLocationFinderClient/ListLocations/main.go", |
| 157 |
"language": "GO", |
| 158 |
"clientMethod": { |
| 159 |
"shortName": "ListLocations", |
| 160 |
"fullName": "google.cloud.locationfinder.v1.CloudLocationFinderClient.ListLocations", |
| 161 |
"parameters": [ |
| 162 |
{ |
| 163 |
"type": "context.Context", |
| 164 |
"name": "ctx" |
| 165 |
}, |
| 166 |
{ |
| 167 |
"type": "locationpb.ListLocationsRequest", |
| 168 |
"name": "req" |
| 169 |
}, |
| 170 |
{ |
| 171 |
"type": "...gax.CallOption", |
| 172 |
"name": "opts" |
| 173 |
} |
| 174 |
], |
| 175 |
"resultType": "LocationIterator", |
| 176 |
"client": { |
| 177 |
"shortName": "CloudLocationFinderClient", |
| 178 |
"fullName": "google.cloud.locationfinder.v1.CloudLocationFinderClient" |
| 179 |
}, |
| 180 |
"method": { |
| 181 |
"shortName": "ListLocations", |
| 182 |
"fullName": "google.cloud.location.Locations.ListLocations", |
| 183 |
"service": { |
| 184 |
"shortName": "Locations", |
| 185 |
"fullName": "google.cloud.location.Locations" |
| 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": "cloudlocationfinder_v1_generated_CloudLocationFinder_SearchCloudLocations_sync", |
| 200 |
"title": "cloudlocationfinder SearchCloudLocations Sample", |
| 201 |
"description": "SearchCloudLocations searches for cloud locations from a given source location.", |
| 202 |
"file": "CloudLocationFinderClient/SearchCloudLocations/main.go", |
| 203 |
"language": "GO", |
| 204 |
"clientMethod": { |
| 205 |
"shortName": "SearchCloudLocations", |
| 206 |
"fullName": "google.cloud.locationfinder.v1.CloudLocationFinderClient.SearchCloudLocations", |
| 207 |
"parameters": [ |
| 208 |
{ |
| 209 |
"type": "context.Context", |
| 210 |
"name": "ctx" |
| 211 |
}, |
| 212 |
{ |
| 213 |
"type": "locationfinderpb.SearchCloudLocationsRequest", |
| 214 |
"name": "req" |
| 215 |
}, |
| 216 |
{ |
| 217 |
"type": "...gax.CallOption", |
| 218 |
"name": "opts" |
| 219 |
} |
| 220 |
], |
| 221 |
"resultType": "CloudLocationIterator", |
| 222 |
"client": { |
| 223 |
"shortName": "CloudLocationFinderClient", |
| 224 |
"fullName": "google.cloud.locationfinder.v1.CloudLocationFinderClient" |
| 225 |
}, |
| 226 |
"method": { |
| 227 |
"shortName": "SearchCloudLocations", |
| 228 |
"fullName": "google.cloud.locationfinder.v1.CloudLocationFinder.SearchCloudLocations", |
| 229 |
"service": { |
| 230 |
"shortName": "CloudLocationFinder", |
| 231 |
"fullName": "google.cloud.locationfinder.v1.CloudLocationFinder" |
| 232 |
} |
| 233 |
} |
| 234 |
}, |
| 235 |
"origin": "API_DEFINITION", |
| 236 |
"segments": [ |
| 237 |
{ |
| 238 |
"start": 18, |
| 239 |
"end": 66, |
| 240 |
"type": "FULL" |
| 241 |
} |
| 242 |
] |
| 243 |
} |
| 244 |
] |
| 245 |
} |