Esempio n. 1
0
func ExampleClient_DeleteSink() {
	ctx := context.Background()
	c, err := config.NewClient(ctx)
	_ = err // Handle error.

	req := &google_logging_v2.DeleteSinkRequest{ /* Data... */ }
	err = c.DeleteSink(ctx, req)
	_ = err // Handle error.
}
Esempio n. 2
0
func ExampleClient_UpdateSink() {
	ctx := context.Background()
	c, err := config.NewClient(ctx)
	_ = err // Handle error.

	req := &google_logging_v2.UpdateSinkRequest{ /* Data... */ }
	var resp *google_logging_v2.LogSink
	resp, err = c.UpdateSink(ctx, req)
	_, _ = resp, err // Handle error.
}
Esempio n. 3
0
func ExampleClient_ListSinks() {
	ctx := context.Background()
	c, err := config.NewClient(ctx)
	_ = err // Handle error.

	req := &google_logging_v2.ListSinksRequest{ /* Data... */ }
	it := c.ListSinks(ctx, req)
	var resp *google_logging_v2.LogSink
	for {
		resp, err = it.Next()
		if err != nil {
			break
		}
	}
	_ = resp
}
Esempio n. 4
0
func ExampleNewClient() {
	ctx := context.Background()
	opts := []gax.ClientOption{ /* Optional client parameters. */ }
	c, err := config.NewClient(ctx, opts...)
	_, _ = c, err // Handle error.
}