(ctx context.Context, account string)
| 262 | } |
| 263 | |
| 264 | func driveService(ctx context.Context, account string) (*drive.Service, error) { |
| 265 | runtime, err := runtimeWithService(ctx, "drive") |
| 266 | if err != nil || runtime.Services.Drive == nil { |
| 267 | return nil, serviceError(err, "drive") |
| 268 | } |
| 269 | return runtime.Services.Drive(ctx, account) |
| 270 | } |
| 271 | |
| 272 | func driveActivityService(ctx context.Context, account string) (*driveactivityapi.Service, error) { |
| 273 | runtime, err := runtimeWithService(ctx, "drive activity") |