Documentation
¶
Overview ¶
Package managedkafka provides access to the Managed Service for Apache Kafka API.
For product documentation, see: https://cloud.google.com/managed-service-for-apache-kafka/docs
Library status ¶
These client libraries are officially supported by Google. However, this library is considered complete and is in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features.
When possible, we recommend using our newer [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) that are still actively being worked and iterated on.
Creating a client ¶
Usage example:
import "google.golang.org/api/managedkafka/v1" ... ctx := context.Background() managedkafkaService, err := managedkafka.NewService(ctx)
In this example, Google Application Default Credentials are used for authentication. For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options ¶
To use an API key for authentication (note: some APIs do not support API keys), use google.golang.org/api/option.WithAPIKey:
managedkafkaService, err := managedkafka.NewService(ctx, option.WithAPIKey("AIza..."))
To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow, use google.golang.org/api/option.WithTokenSource:
config := &oauth2.Config{...} // ... token, err := config.Exchange(ctx, ...) managedkafkaService, err := managedkafka.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See google.golang.org/api/option.ClientOption for details on options.
Index ¶
- Constants
- type AccessConfig
- type Acl
- type AclEntry
- type AddAclEntryResponse
- type CancelOperationRequest
- type CapacityConfig
- type Cluster
- type ConnectAccessConfig
- type ConnectCluster
- type ConnectGcpConfig
- type ConnectNetworkConfig
- type Connector
- type ConsumerGroup
- type ConsumerPartitionMetadata
- type ConsumerTopicMetadata
- type Empty
- type GcpConfig
- type ListAclsResponse
- type ListClustersResponse
- type ListConnectClustersResponse
- type ListConnectorsResponse
- type ListConsumerGroupsResponse
- type ListLocationsResponse
- type ListOperationsResponse
- type ListTopicsResponse
- type Location
- type NetworkConfig
- type Operation
- type OperationMetadata
- type PauseConnectorRequest
- type PauseConnectorResponse
- type ProjectsLocationsClustersAclsAddAclEntryCall
- func (c *ProjectsLocationsClustersAclsAddAclEntryCall) Context(ctx context.Context) *ProjectsLocationsClustersAclsAddAclEntryCall
- func (c *ProjectsLocationsClustersAclsAddAclEntryCall) Do(opts ...googleapi.CallOption) (*AddAclEntryResponse, error)
- func (c *ProjectsLocationsClustersAclsAddAclEntryCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersAclsAddAclEntryCall
- func (c *ProjectsLocationsClustersAclsAddAclEntryCall) Header() http.Header
- type ProjectsLocationsClustersAclsCreateCall
- func (c *ProjectsLocationsClustersAclsCreateCall) AclId(aclId string) *ProjectsLocationsClustersAclsCreateCall
- func (c *ProjectsLocationsClustersAclsCreateCall) Context(ctx context.Context) *ProjectsLocationsClustersAclsCreateCall
- func (c *ProjectsLocationsClustersAclsCreateCall) Do(opts ...googleapi.CallOption) (*Acl, error)
- func (c *ProjectsLocationsClustersAclsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersAclsCreateCall
- func (c *ProjectsLocationsClustersAclsCreateCall) Header() http.Header
- type ProjectsLocationsClustersAclsDeleteCall
- func (c *ProjectsLocationsClustersAclsDeleteCall) Context(ctx context.Context) *ProjectsLocationsClustersAclsDeleteCall
- func (c *ProjectsLocationsClustersAclsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsClustersAclsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersAclsDeleteCall
- func (c *ProjectsLocationsClustersAclsDeleteCall) Header() http.Header
- type ProjectsLocationsClustersAclsGetCall
- func (c *ProjectsLocationsClustersAclsGetCall) Context(ctx context.Context) *ProjectsLocationsClustersAclsGetCall
- func (c *ProjectsLocationsClustersAclsGetCall) Do(opts ...googleapi.CallOption) (*Acl, error)
- func (c *ProjectsLocationsClustersAclsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersAclsGetCall
- func (c *ProjectsLocationsClustersAclsGetCall) Header() http.Header
- func (c *ProjectsLocationsClustersAclsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersAclsGetCall
- type ProjectsLocationsClustersAclsListCall
- func (c *ProjectsLocationsClustersAclsListCall) Context(ctx context.Context) *ProjectsLocationsClustersAclsListCall
- func (c *ProjectsLocationsClustersAclsListCall) Do(opts ...googleapi.CallOption) (*ListAclsResponse, error)
- func (c *ProjectsLocationsClustersAclsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersAclsListCall
- func (c *ProjectsLocationsClustersAclsListCall) Header() http.Header
- func (c *ProjectsLocationsClustersAclsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersAclsListCall
- func (c *ProjectsLocationsClustersAclsListCall) PageSize(pageSize int64) *ProjectsLocationsClustersAclsListCall
- func (c *ProjectsLocationsClustersAclsListCall) PageToken(pageToken string) *ProjectsLocationsClustersAclsListCall
- func (c *ProjectsLocationsClustersAclsListCall) Pages(ctx context.Context, f func(*ListAclsResponse) error) error
- type ProjectsLocationsClustersAclsPatchCall
- func (c *ProjectsLocationsClustersAclsPatchCall) Context(ctx context.Context) *ProjectsLocationsClustersAclsPatchCall
- func (c *ProjectsLocationsClustersAclsPatchCall) Do(opts ...googleapi.CallOption) (*Acl, error)
- func (c *ProjectsLocationsClustersAclsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersAclsPatchCall
- func (c *ProjectsLocationsClustersAclsPatchCall) Header() http.Header
- func (c *ProjectsLocationsClustersAclsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsClustersAclsPatchCall
- type ProjectsLocationsClustersAclsRemoveAclEntryCall
- func (c *ProjectsLocationsClustersAclsRemoveAclEntryCall) Context(ctx context.Context) *ProjectsLocationsClustersAclsRemoveAclEntryCall
- func (c *ProjectsLocationsClustersAclsRemoveAclEntryCall) Do(opts ...googleapi.CallOption) (*RemoveAclEntryResponse, error)
- func (c *ProjectsLocationsClustersAclsRemoveAclEntryCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersAclsRemoveAclEntryCall
- func (c *ProjectsLocationsClustersAclsRemoveAclEntryCall) Header() http.Header
- type ProjectsLocationsClustersAclsService
- func (r *ProjectsLocationsClustersAclsService) AddAclEntry(acl string, aclentry *AclEntry) *ProjectsLocationsClustersAclsAddAclEntryCall
- func (r *ProjectsLocationsClustersAclsService) Create(parent string, acl *Acl) *ProjectsLocationsClustersAclsCreateCall
- func (r *ProjectsLocationsClustersAclsService) Delete(name string) *ProjectsLocationsClustersAclsDeleteCall
- func (r *ProjectsLocationsClustersAclsService) Get(name string) *ProjectsLocationsClustersAclsGetCall
- func (r *ProjectsLocationsClustersAclsService) List(parent string) *ProjectsLocationsClustersAclsListCall
- func (r *ProjectsLocationsClustersAclsService) Patch(name string, acl *Acl) *ProjectsLocationsClustersAclsPatchCall
- func (r *ProjectsLocationsClustersAclsService) RemoveAclEntry(acl string, aclentry *AclEntry) *ProjectsLocationsClustersAclsRemoveAclEntryCall
- type ProjectsLocationsClustersConsumerGroupsDeleteCall
- func (c *ProjectsLocationsClustersConsumerGroupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsClustersConsumerGroupsDeleteCall
- func (c *ProjectsLocationsClustersConsumerGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsClustersConsumerGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersConsumerGroupsDeleteCall
- func (c *ProjectsLocationsClustersConsumerGroupsDeleteCall) Header() http.Header
- type ProjectsLocationsClustersConsumerGroupsGetCall
- func (c *ProjectsLocationsClustersConsumerGroupsGetCall) Context(ctx context.Context) *ProjectsLocationsClustersConsumerGroupsGetCall
- func (c *ProjectsLocationsClustersConsumerGroupsGetCall) Do(opts ...googleapi.CallOption) (*ConsumerGroup, error)
- func (c *ProjectsLocationsClustersConsumerGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersConsumerGroupsGetCall
- func (c *ProjectsLocationsClustersConsumerGroupsGetCall) Header() http.Header
- func (c *ProjectsLocationsClustersConsumerGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersConsumerGroupsGetCall
- type ProjectsLocationsClustersConsumerGroupsListCall
- func (c *ProjectsLocationsClustersConsumerGroupsListCall) Context(ctx context.Context) *ProjectsLocationsClustersConsumerGroupsListCall
- func (c *ProjectsLocationsClustersConsumerGroupsListCall) Do(opts ...googleapi.CallOption) (*ListConsumerGroupsResponse, error)
- func (c *ProjectsLocationsClustersConsumerGroupsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersConsumerGroupsListCall
- func (c *ProjectsLocationsClustersConsumerGroupsListCall) Header() http.Header
- func (c *ProjectsLocationsClustersConsumerGroupsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersConsumerGroupsListCall
- func (c *ProjectsLocationsClustersConsumerGroupsListCall) PageSize(pageSize int64) *ProjectsLocationsClustersConsumerGroupsListCall
- func (c *ProjectsLocationsClustersConsumerGroupsListCall) PageToken(pageToken string) *ProjectsLocationsClustersConsumerGroupsListCall
- func (c *ProjectsLocationsClustersConsumerGroupsListCall) Pages(ctx context.Context, f func(*ListConsumerGroupsResponse) error) error
- type ProjectsLocationsClustersConsumerGroupsPatchCall
- func (c *ProjectsLocationsClustersConsumerGroupsPatchCall) Context(ctx context.Context) *ProjectsLocationsClustersConsumerGroupsPatchCall
- func (c *ProjectsLocationsClustersConsumerGroupsPatchCall) Do(opts ...googleapi.CallOption) (*ConsumerGroup, error)
- func (c *ProjectsLocationsClustersConsumerGroupsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersConsumerGroupsPatchCall
- func (c *ProjectsLocationsClustersConsumerGroupsPatchCall) Header() http.Header
- func (c *ProjectsLocationsClustersConsumerGroupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsClustersConsumerGroupsPatchCall
- type ProjectsLocationsClustersConsumerGroupsService
- func (r *ProjectsLocationsClustersConsumerGroupsService) Delete(name string) *ProjectsLocationsClustersConsumerGroupsDeleteCall
- func (r *ProjectsLocationsClustersConsumerGroupsService) Get(name string) *ProjectsLocationsClustersConsumerGroupsGetCall
- func (r *ProjectsLocationsClustersConsumerGroupsService) List(parent string) *ProjectsLocationsClustersConsumerGroupsListCall
- func (r *ProjectsLocationsClustersConsumerGroupsService) Patch(name string, consumergroup *ConsumerGroup) *ProjectsLocationsClustersConsumerGroupsPatchCall
- type ProjectsLocationsClustersCreateCall
- func (c *ProjectsLocationsClustersCreateCall) ClusterId(clusterId string) *ProjectsLocationsClustersCreateCall
- func (c *ProjectsLocationsClustersCreateCall) Context(ctx context.Context) *ProjectsLocationsClustersCreateCall
- func (c *ProjectsLocationsClustersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsClustersCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersCreateCall
- func (c *ProjectsLocationsClustersCreateCall) Header() http.Header
- func (c *ProjectsLocationsClustersCreateCall) RequestId(requestId string) *ProjectsLocationsClustersCreateCall
- type ProjectsLocationsClustersDeleteCall
- func (c *ProjectsLocationsClustersDeleteCall) Context(ctx context.Context) *ProjectsLocationsClustersDeleteCall
- func (c *ProjectsLocationsClustersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsClustersDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersDeleteCall
- func (c *ProjectsLocationsClustersDeleteCall) Header() http.Header
- func (c *ProjectsLocationsClustersDeleteCall) RequestId(requestId string) *ProjectsLocationsClustersDeleteCall
- type ProjectsLocationsClustersGetCall
- func (c *ProjectsLocationsClustersGetCall) Context(ctx context.Context) *ProjectsLocationsClustersGetCall
- func (c *ProjectsLocationsClustersGetCall) Do(opts ...googleapi.CallOption) (*Cluster, error)
- func (c *ProjectsLocationsClustersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersGetCall
- func (c *ProjectsLocationsClustersGetCall) Header() http.Header
- func (c *ProjectsLocationsClustersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersGetCall
- type ProjectsLocationsClustersListCall
- func (c *ProjectsLocationsClustersListCall) Context(ctx context.Context) *ProjectsLocationsClustersListCall
- func (c *ProjectsLocationsClustersListCall) Do(opts ...googleapi.CallOption) (*ListClustersResponse, error)
- func (c *ProjectsLocationsClustersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersListCall
- func (c *ProjectsLocationsClustersListCall) Filter(filter string) *ProjectsLocationsClustersListCall
- func (c *ProjectsLocationsClustersListCall) Header() http.Header
- func (c *ProjectsLocationsClustersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersListCall
- func (c *ProjectsLocationsClustersListCall) OrderBy(orderBy string) *ProjectsLocationsClustersListCall
- func (c *ProjectsLocationsClustersListCall) PageSize(pageSize int64) *ProjectsLocationsClustersListCall
- func (c *ProjectsLocationsClustersListCall) PageToken(pageToken string) *ProjectsLocationsClustersListCall
- func (c *ProjectsLocationsClustersListCall) Pages(ctx context.Context, f func(*ListClustersResponse) error) error
- type ProjectsLocationsClustersPatchCall
- func (c *ProjectsLocationsClustersPatchCall) Context(ctx context.Context) *ProjectsLocationsClustersPatchCall
- func (c *ProjectsLocationsClustersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsClustersPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersPatchCall
- func (c *ProjectsLocationsClustersPatchCall) Header() http.Header
- func (c *ProjectsLocationsClustersPatchCall) RequestId(requestId string) *ProjectsLocationsClustersPatchCall
- func (c *ProjectsLocationsClustersPatchCall) UpdateMask(updateMask string) *ProjectsLocationsClustersPatchCall
- type ProjectsLocationsClustersService
- func (r *ProjectsLocationsClustersService) Create(parent string, cluster *Cluster) *ProjectsLocationsClustersCreateCall
- func (r *ProjectsLocationsClustersService) Delete(name string) *ProjectsLocationsClustersDeleteCall
- func (r *ProjectsLocationsClustersService) Get(name string) *ProjectsLocationsClustersGetCall
- func (r *ProjectsLocationsClustersService) List(parent string) *ProjectsLocationsClustersListCall
- func (r *ProjectsLocationsClustersService) Patch(name string, cluster *Cluster) *ProjectsLocationsClustersPatchCall
- type ProjectsLocationsClustersTopicsCreateCall
- func (c *ProjectsLocationsClustersTopicsCreateCall) Context(ctx context.Context) *ProjectsLocationsClustersTopicsCreateCall
- func (c *ProjectsLocationsClustersTopicsCreateCall) Do(opts ...googleapi.CallOption) (*Topic, error)
- func (c *ProjectsLocationsClustersTopicsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersTopicsCreateCall
- func (c *ProjectsLocationsClustersTopicsCreateCall) Header() http.Header
- func (c *ProjectsLocationsClustersTopicsCreateCall) TopicId(topicId string) *ProjectsLocationsClustersTopicsCreateCall
- type ProjectsLocationsClustersTopicsDeleteCall
- func (c *ProjectsLocationsClustersTopicsDeleteCall) Context(ctx context.Context) *ProjectsLocationsClustersTopicsDeleteCall
- func (c *ProjectsLocationsClustersTopicsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsClustersTopicsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersTopicsDeleteCall
- func (c *ProjectsLocationsClustersTopicsDeleteCall) Header() http.Header
- type ProjectsLocationsClustersTopicsGetCall
- func (c *ProjectsLocationsClustersTopicsGetCall) Context(ctx context.Context) *ProjectsLocationsClustersTopicsGetCall
- func (c *ProjectsLocationsClustersTopicsGetCall) Do(opts ...googleapi.CallOption) (*Topic, error)
- func (c *ProjectsLocationsClustersTopicsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersTopicsGetCall
- func (c *ProjectsLocationsClustersTopicsGetCall) Header() http.Header
- func (c *ProjectsLocationsClustersTopicsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersTopicsGetCall
- type ProjectsLocationsClustersTopicsListCall
- func (c *ProjectsLocationsClustersTopicsListCall) Context(ctx context.Context) *ProjectsLocationsClustersTopicsListCall
- func (c *ProjectsLocationsClustersTopicsListCall) Do(opts ...googleapi.CallOption) (*ListTopicsResponse, error)
- func (c *ProjectsLocationsClustersTopicsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersTopicsListCall
- func (c *ProjectsLocationsClustersTopicsListCall) Header() http.Header
- func (c *ProjectsLocationsClustersTopicsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersTopicsListCall
- func (c *ProjectsLocationsClustersTopicsListCall) PageSize(pageSize int64) *ProjectsLocationsClustersTopicsListCall
- func (c *ProjectsLocationsClustersTopicsListCall) PageToken(pageToken string) *ProjectsLocationsClustersTopicsListCall
- func (c *ProjectsLocationsClustersTopicsListCall) Pages(ctx context.Context, f func(*ListTopicsResponse) error) error
- type ProjectsLocationsClustersTopicsPatchCall
- func (c *ProjectsLocationsClustersTopicsPatchCall) Context(ctx context.Context) *ProjectsLocationsClustersTopicsPatchCall
- func (c *ProjectsLocationsClustersTopicsPatchCall) Do(opts ...googleapi.CallOption) (*Topic, error)
- func (c *ProjectsLocationsClustersTopicsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersTopicsPatchCall
- func (c *ProjectsLocationsClustersTopicsPatchCall) Header() http.Header
- func (c *ProjectsLocationsClustersTopicsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsClustersTopicsPatchCall
- type ProjectsLocationsClustersTopicsService
- func (r *ProjectsLocationsClustersTopicsService) Create(parent string, topic *Topic) *ProjectsLocationsClustersTopicsCreateCall
- func (r *ProjectsLocationsClustersTopicsService) Delete(name string) *ProjectsLocationsClustersTopicsDeleteCall
- func (r *ProjectsLocationsClustersTopicsService) Get(name string) *ProjectsLocationsClustersTopicsGetCall
- func (r *ProjectsLocationsClustersTopicsService) List(parent string) *ProjectsLocationsClustersTopicsListCall
- func (r *ProjectsLocationsClustersTopicsService) Patch(name string, topic *Topic) *ProjectsLocationsClustersTopicsPatchCall
- type ProjectsLocationsConnectClustersConnectorsCreateCall
- func (c *ProjectsLocationsConnectClustersConnectorsCreateCall) ConnectorId(connectorId string) *ProjectsLocationsConnectClustersConnectorsCreateCall
- func (c *ProjectsLocationsConnectClustersConnectorsCreateCall) Context(ctx context.Context) *ProjectsLocationsConnectClustersConnectorsCreateCall
- func (c *ProjectsLocationsConnectClustersConnectorsCreateCall) Do(opts ...googleapi.CallOption) (*Connector, error)
- func (c *ProjectsLocationsConnectClustersConnectorsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectClustersConnectorsCreateCall
- func (c *ProjectsLocationsConnectClustersConnectorsCreateCall) Header() http.Header
- type ProjectsLocationsConnectClustersConnectorsDeleteCall
- func (c *ProjectsLocationsConnectClustersConnectorsDeleteCall) Context(ctx context.Context) *ProjectsLocationsConnectClustersConnectorsDeleteCall
- func (c *ProjectsLocationsConnectClustersConnectorsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsConnectClustersConnectorsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectClustersConnectorsDeleteCall
- func (c *ProjectsLocationsConnectClustersConnectorsDeleteCall) Header() http.Header
- type ProjectsLocationsConnectClustersConnectorsGetCall
- func (c *ProjectsLocationsConnectClustersConnectorsGetCall) Context(ctx context.Context) *ProjectsLocationsConnectClustersConnectorsGetCall
- func (c *ProjectsLocationsConnectClustersConnectorsGetCall) Do(opts ...googleapi.CallOption) (*Connector, error)
- func (c *ProjectsLocationsConnectClustersConnectorsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectClustersConnectorsGetCall
- func (c *ProjectsLocationsConnectClustersConnectorsGetCall) Header() http.Header
- func (c *ProjectsLocationsConnectClustersConnectorsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectClustersConnectorsGetCall
- type ProjectsLocationsConnectClustersConnectorsListCall
- func (c *ProjectsLocationsConnectClustersConnectorsListCall) Context(ctx context.Context) *ProjectsLocationsConnectClustersConnectorsListCall
- func (c *ProjectsLocationsConnectClustersConnectorsListCall) Do(opts ...googleapi.CallOption) (*ListConnectorsResponse, error)
- func (c *ProjectsLocationsConnectClustersConnectorsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectClustersConnectorsListCall
- func (c *ProjectsLocationsConnectClustersConnectorsListCall) Header() http.Header
- func (c *ProjectsLocationsConnectClustersConnectorsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectClustersConnectorsListCall
- func (c *ProjectsLocationsConnectClustersConnectorsListCall) PageSize(pageSize int64) *ProjectsLocationsConnectClustersConnectorsListCall
- func (c *ProjectsLocationsConnectClustersConnectorsListCall) PageToken(pageToken string) *ProjectsLocationsConnectClustersConnectorsListCall
- func (c *ProjectsLocationsConnectClustersConnectorsListCall) Pages(ctx context.Context, f func(*ListConnectorsResponse) error) error
- type ProjectsLocationsConnectClustersConnectorsPatchCall
- func (c *ProjectsLocationsConnectClustersConnectorsPatchCall) Context(ctx context.Context) *ProjectsLocationsConnectClustersConnectorsPatchCall
- func (c *ProjectsLocationsConnectClustersConnectorsPatchCall) Do(opts ...googleapi.CallOption) (*Connector, error)
- func (c *ProjectsLocationsConnectClustersConnectorsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectClustersConnectorsPatchCall
- func (c *ProjectsLocationsConnectClustersConnectorsPatchCall) Header() http.Header
- func (c *ProjectsLocationsConnectClustersConnectorsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConnectClustersConnectorsPatchCall
- type ProjectsLocationsConnectClustersConnectorsPauseCall
- func (c *ProjectsLocationsConnectClustersConnectorsPauseCall) Context(ctx context.Context) *ProjectsLocationsConnectClustersConnectorsPauseCall
- func (c *ProjectsLocationsConnectClustersConnectorsPauseCall) Do(opts ...googleapi.CallOption) (*PauseConnectorResponse, error)
- func (c *ProjectsLocationsConnectClustersConnectorsPauseCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectClustersConnectorsPauseCall
- func (c *ProjectsLocationsConnectClustersConnectorsPauseCall) Header() http.Header
- type ProjectsLocationsConnectClustersConnectorsRestartCall
- func (c *ProjectsLocationsConnectClustersConnectorsRestartCall) Context(ctx context.Context) *ProjectsLocationsConnectClustersConnectorsRestartCall
- func (c *ProjectsLocationsConnectClustersConnectorsRestartCall) Do(opts ...googleapi.CallOption) (*RestartConnectorResponse, error)
- func (c *ProjectsLocationsConnectClustersConnectorsRestartCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectClustersConnectorsRestartCall
- func (c *ProjectsLocationsConnectClustersConnectorsRestartCall) Header() http.Header
- type ProjectsLocationsConnectClustersConnectorsResumeCall
- func (c *ProjectsLocationsConnectClustersConnectorsResumeCall) Context(ctx context.Context) *ProjectsLocationsConnectClustersConnectorsResumeCall
- func (c *ProjectsLocationsConnectClustersConnectorsResumeCall) Do(opts ...googleapi.CallOption) (*ResumeConnectorResponse, error)
- func (c *ProjectsLocationsConnectClustersConnectorsResumeCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectClustersConnectorsResumeCall
- func (c *ProjectsLocationsConnectClustersConnectorsResumeCall) Header() http.Header
- type ProjectsLocationsConnectClustersConnectorsService
- func (r *ProjectsLocationsConnectClustersConnectorsService) Create(parent string, connector *Connector) *ProjectsLocationsConnectClustersConnectorsCreateCall
- func (r *ProjectsLocationsConnectClustersConnectorsService) Delete(name string) *ProjectsLocationsConnectClustersConnectorsDeleteCall
- func (r *ProjectsLocationsConnectClustersConnectorsService) Get(name string) *ProjectsLocationsConnectClustersConnectorsGetCall
- func (r *ProjectsLocationsConnectClustersConnectorsService) List(parent string) *ProjectsLocationsConnectClustersConnectorsListCall
- func (r *ProjectsLocationsConnectClustersConnectorsService) Patch(name string, connector *Connector) *ProjectsLocationsConnectClustersConnectorsPatchCall
- func (r *ProjectsLocationsConnectClustersConnectorsService) Pause(name string, pauseconnectorrequest *PauseConnectorRequest) *ProjectsLocationsConnectClustersConnectorsPauseCall
- func (r *ProjectsLocationsConnectClustersConnectorsService) Restart(name string, restartconnectorrequest *RestartConnectorRequest) *ProjectsLocationsConnectClustersConnectorsRestartCall
- func (r *ProjectsLocationsConnectClustersConnectorsService) Resume(name string, resumeconnectorrequest *ResumeConnectorRequest) *ProjectsLocationsConnectClustersConnectorsResumeCall
- func (r *ProjectsLocationsConnectClustersConnectorsService) Stop(name string, stopconnectorrequest *StopConnectorRequest) *ProjectsLocationsConnectClustersConnectorsStopCall
- type ProjectsLocationsConnectClustersConnectorsStopCall
- func (c *ProjectsLocationsConnectClustersConnectorsStopCall) Context(ctx context.Context) *ProjectsLocationsConnectClustersConnectorsStopCall
- func (c *ProjectsLocationsConnectClustersConnectorsStopCall) Do(opts ...googleapi.CallOption) (*StopConnectorResponse, error)
- func (c *ProjectsLocationsConnectClustersConnectorsStopCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectClustersConnectorsStopCall
- func (c *ProjectsLocationsConnectClustersConnectorsStopCall) Header() http.Header
- type ProjectsLocationsConnectClustersCreateCall
- func (c *ProjectsLocationsConnectClustersCreateCall) ConnectClusterId(connectClusterId string) *ProjectsLocationsConnectClustersCreateCall
- func (c *ProjectsLocationsConnectClustersCreateCall) Context(ctx context.Context) *ProjectsLocationsConnectClustersCreateCall
- func (c *ProjectsLocationsConnectClustersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsConnectClustersCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectClustersCreateCall
- func (c *ProjectsLocationsConnectClustersCreateCall) Header() http.Header
- func (c *ProjectsLocationsConnectClustersCreateCall) RequestId(requestId string) *ProjectsLocationsConnectClustersCreateCall
- type ProjectsLocationsConnectClustersDeleteCall
- func (c *ProjectsLocationsConnectClustersDeleteCall) Context(ctx context.Context) *ProjectsLocationsConnectClustersDeleteCall
- func (c *ProjectsLocationsConnectClustersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsConnectClustersDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectClustersDeleteCall
- func (c *ProjectsLocationsConnectClustersDeleteCall) Header() http.Header
- func (c *ProjectsLocationsConnectClustersDeleteCall) RequestId(requestId string) *ProjectsLocationsConnectClustersDeleteCall
- type ProjectsLocationsConnectClustersGetCall
- func (c *ProjectsLocationsConnectClustersGetCall) Context(ctx context.Context) *ProjectsLocationsConnectClustersGetCall
- func (c *ProjectsLocationsConnectClustersGetCall) Do(opts ...googleapi.CallOption) (*ConnectCluster, error)
- func (c *ProjectsLocationsConnectClustersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectClustersGetCall
- func (c *ProjectsLocationsConnectClustersGetCall) Header() http.Header
- func (c *ProjectsLocationsConnectClustersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectClustersGetCall
- type ProjectsLocationsConnectClustersListCall
- func (c *ProjectsLocationsConnectClustersListCall) Context(ctx context.Context) *ProjectsLocationsConnectClustersListCall
- func (c *ProjectsLocationsConnectClustersListCall) Do(opts ...googleapi.CallOption) (*ListConnectClustersResponse, error)
- func (c *ProjectsLocationsConnectClustersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectClustersListCall
- func (c *ProjectsLocationsConnectClustersListCall) Filter(filter string) *ProjectsLocationsConnectClustersListCall
- func (c *ProjectsLocationsConnectClustersListCall) Header() http.Header
- func (c *ProjectsLocationsConnectClustersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectClustersListCall
- func (c *ProjectsLocationsConnectClustersListCall) OrderBy(orderBy string) *ProjectsLocationsConnectClustersListCall
- func (c *ProjectsLocationsConnectClustersListCall) PageSize(pageSize int64) *ProjectsLocationsConnectClustersListCall
- func (c *ProjectsLocationsConnectClustersListCall) PageToken(pageToken string) *ProjectsLocationsConnectClustersListCall
- func (c *ProjectsLocationsConnectClustersListCall) Pages(ctx context.Context, f func(*ListConnectClustersResponse) error) error
- type ProjectsLocationsConnectClustersPatchCall
- func (c *ProjectsLocationsConnectClustersPatchCall) Context(ctx context.Context) *ProjectsLocationsConnectClustersPatchCall
- func (c *ProjectsLocationsConnectClustersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsConnectClustersPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectClustersPatchCall
- func (c *ProjectsLocationsConnectClustersPatchCall) Header() http.Header
- func (c *ProjectsLocationsConnectClustersPatchCall) RequestId(requestId string) *ProjectsLocationsConnectClustersPatchCall
- func (c *ProjectsLocationsConnectClustersPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConnectClustersPatchCall
- type ProjectsLocationsConnectClustersService
- func (r *ProjectsLocationsConnectClustersService) Create(parent string, connectcluster *ConnectCluster) *ProjectsLocationsConnectClustersCreateCall
- func (r *ProjectsLocationsConnectClustersService) Delete(name string) *ProjectsLocationsConnectClustersDeleteCall
- func (r *ProjectsLocationsConnectClustersService) Get(name string) *ProjectsLocationsConnectClustersGetCall
- func (r *ProjectsLocationsConnectClustersService) List(parent string) *ProjectsLocationsConnectClustersListCall
- func (r *ProjectsLocationsConnectClustersService) Patch(name string, connectcluster *ConnectCluster) *ProjectsLocationsConnectClustersPatchCall
- type ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error)
- func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Header() http.Header
- func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall
- type ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error)
- func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Header() http.Header
- func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error
- type ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header
- type ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header
- type ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Header() http.Header
- func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall
- type ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)
- func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Header() http.Header
- func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error
- type ProjectsLocationsOperationsService
- func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall
- func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall
- func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall
- func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall
- type ProjectsLocationsService
- type ProjectsService
- type RebalanceConfig
- type RemoveAclEntryResponse
- type RestartConnectorRequest
- type RestartConnectorResponse
- type ResumeConnectorRequest
- type ResumeConnectorResponse
- type Service
- type Status
- type StopConnectorRequest
- type StopConnectorResponse
- type TaskRetryPolicy
- type Topic
Constants ¶
const ( // See, edit, configure, and delete your Google Cloud data and see the email // address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" )
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessConfig ¶
type AccessConfig struct { // NetworkConfigs: Required. Virtual Private Cloud (VPC) networks that must be // granted direct access to the Kafka cluster. Minimum of 1 network is // required. Maximum 10 networks can be specified. NetworkConfigs []*NetworkConfig `json:"networkConfigs,omitempty"` // ForceSendFields is a list of field names (e.g. "NetworkConfigs") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NetworkConfigs") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
AccessConfig: The configuration of access to the Kafka cluster.
func (AccessConfig) MarshalJSON ¶
func (s AccessConfig) MarshalJSON() ([]byte, error)
type Acl ¶ added in v0.230.0
type Acl struct { // AclEntries: Required. The ACL entries that apply to the resource pattern. // The maximum number of allowed entries 100. AclEntries []*AclEntry `json:"aclEntries,omitempty"` // Etag: Optional. `etag` is used for concurrency control. An `etag` is // returned in the response to `GetAcl` and `CreateAcl`. Callers are required // to put that etag in the request to `UpdateAcl` to ensure that their change // will be applied to the same version of the acl that exists in the Kafka // Cluster. A terminal 'T' character in the etag indicates that the AclEntries // were truncated; more entries for the Acl exist on the Kafka Cluster, but // can't be returned in the Acl due to repeated field limits. Etag string `json:"etag,omitempty"` // Name: Identifier. The name for the acl. Represents a single Resource // Pattern. Structured like: // projects/{project}/locations/{location}/clusters/{cluster}/acls/{acl_id} The // structure of `acl_id` defines the Resource Pattern (resource_type, // resource_name, pattern_type) of the acl. `acl_id` is structured like one of // the following: For acls on the cluster: `cluster` For acls on a single // resource within the cluster: `topic/{resource_name}` // `consumerGroup/{resource_name}` `transactionalId/{resource_name}` For acls // on all resources that match a prefix: `topicPrefixed/{resource_name}` // `consumerGroupPrefixed/{resource_name}` // `transactionalIdPrefixed/{resource_name}` For acls on all resources of a // given type (i.e. the wildcard literal "*"): `allTopics` (represents // `topic/*`) `allConsumerGroups` (represents `consumerGroup/*`) // `allTransactionalIds` (represents `transactionalId/*`) Name string `json:"name,omitempty"` // PatternType: Output only. The ACL pattern type derived from the name. One // of: LITERAL, PREFIXED. PatternType string `json:"patternType,omitempty"` // ResourceName: Output only. The ACL resource name derived from the name. For // cluster resource_type, this is always "kafka-cluster". Can be the wildcard // literal "*". ResourceName string `json:"resourceName,omitempty"` // ResourceType: Output only. The ACL resource type derived from the name. One // of: CLUSTER, TOPIC, GROUP, TRANSACTIONAL_ID. ResourceType string `json:"resourceType,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AclEntries") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AclEntries") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Acl: Represents the set of ACLs for a given Kafka Resource Pattern, which consists of resource_type, resource_name and pattern_type.
func (Acl) MarshalJSON ¶ added in v0.230.0
type AclEntry ¶ added in v0.230.0
type AclEntry struct { // Host: Required. The host. Must be set to "*" for Managed Service for Apache // Kafka. Host string `json:"host,omitempty"` // Operation: Required. The operation type. Allowed values are (case // insensitive): ALL, READ, WRITE, CREATE, DELETE, ALTER, DESCRIBE, // CLUSTER_ACTION, DESCRIBE_CONFIGS, ALTER_CONFIGS, and IDEMPOTENT_WRITE. See // https://kafka.apache.org/documentation/#operations_resources_and_protocols // for valid combinations of resource_type and operation for different Kafka // API requests. Operation string `json:"operation,omitempty"` // PermissionType: Required. The permission type. Accepted values are (case // insensitive): ALLOW, DENY. PermissionType string `json:"permissionType,omitempty"` // Principal: Required. The principal. Specified as Google Cloud account, with // the Kafka StandardAuthorizer prefix "User:". For example: // "User:[email protected]". Can be the // wildcard "User:*" to refer to all users. Principal string `json:"principal,omitempty"` // ForceSendFields is a list of field names (e.g. "Host") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Host") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
AclEntry: Represents the access granted for a given Resource Pattern in an ACL.
func (AclEntry) MarshalJSON ¶ added in v0.230.0
type AddAclEntryResponse ¶ added in v0.230.0
type AddAclEntryResponse struct { // Acl: The updated acl. Acl *Acl `json:"acl,omitempty"` // AclCreated: Whether the acl was created as a result of adding the acl entry. AclCreated bool `json:"aclCreated,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Acl") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Acl") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
AddAclEntryResponse: Response for AddAclEntry.
func (AddAclEntryResponse) MarshalJSON ¶ added in v0.230.0
func (s AddAclEntryResponse) MarshalJSON() ([]byte, error)
type CancelOperationRequest ¶
type CancelOperationRequest struct { }
CancelOperationRequest: The request message for Operations.CancelOperation.
type CapacityConfig ¶
type CapacityConfig struct { // MemoryBytes: Required. The memory to provision for the cluster in bytes. The // CPU:memory ratio (vCPU:GiB) must be between 1:1 and 1:8. Minimum: 3221225472 // (3 GiB). MemoryBytes int64 `json:"memoryBytes,omitempty,string"` // VcpuCount: Required. The number of vCPUs to provision for the cluster. // Minimum: 3. VcpuCount int64 `json:"vcpuCount,omitempty,string"` // ForceSendFields is a list of field names (e.g. "MemoryBytes") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "MemoryBytes") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
CapacityConfig: A capacity configuration of a Kafka cluster.
func (CapacityConfig) MarshalJSON ¶
func (s CapacityConfig) MarshalJSON() ([]byte, error)
type Cluster ¶
type Cluster struct { // CapacityConfig: Required. Capacity configuration for the Kafka cluster. CapacityConfig *CapacityConfig `json:"capacityConfig,omitempty"` // CreateTime: Output only. The time when the cluster was created. CreateTime string `json:"createTime,omitempty"` // GcpConfig: Required. Configuration properties for a Kafka cluster deployed // to Google Cloud Platform. GcpConfig *GcpConfig `json:"gcpConfig,omitempty"` // Labels: Optional. Labels as key value pairs. Labels map[string]string `json:"labels,omitempty"` // Name: Identifier. The name of the cluster. Structured like: // projects/{project_number}/locations/{location}/clusters/{cluster_id} Name string `json:"name,omitempty"` // RebalanceConfig: Optional. Rebalance configuration for the Kafka cluster. RebalanceConfig *RebalanceConfig `json:"rebalanceConfig,omitempty"` // SatisfiesPzi: Output only. Reserved for future use. SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` // SatisfiesPzs: Output only. Reserved for future use. SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // State: Output only. The current state of the cluster. // // Possible values: // "STATE_UNSPECIFIED" - A state was not specified. // "CREATING" - The cluster is being created. // "ACTIVE" - The cluster is active. // "DELETING" - The cluster is being deleted. State string `json:"state,omitempty"` // UpdateTime: Output only. The time when the cluster was last updated. UpdateTime string `json:"updateTime,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CapacityConfig") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CapacityConfig") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Cluster: An Apache Kafka cluster deployed in a location.
func (Cluster) MarshalJSON ¶
type ConnectAccessConfig ¶ added in v0.228.0
type ConnectAccessConfig struct { // NetworkConfigs: Required. Virtual Private Cloud (VPC) networks that must be // granted direct access to the Kafka Connect cluster. Minimum of 1 network is // required. Maximum 10 networks can be specified. NetworkConfigs []*ConnectNetworkConfig `json:"networkConfigs,omitempty"` // ForceSendFields is a list of field names (e.g. "NetworkConfigs") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NetworkConfigs") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ConnectAccessConfig: The configuration of access to the Kafka Connect cluster.
func (ConnectAccessConfig) MarshalJSON ¶ added in v0.228.0
func (s ConnectAccessConfig) MarshalJSON() ([]byte, error)
type ConnectCluster ¶ added in v0.228.0
type ConnectCluster struct { // CapacityConfig: Required. Capacity configuration for the Kafka Connect // cluster. CapacityConfig *CapacityConfig `json:"capacityConfig,omitempty"` // Config: Optional. Configurations for the worker that are overridden from the // defaults. The key of the map is a Kafka Connect worker property name, for // example: `exactly.once.source.support`. Config map[string]string `json:"config,omitempty"` // CreateTime: Output only. The time when the cluster was created. CreateTime string `json:"createTime,omitempty"` // GcpConfig: Required. Configuration properties for a Kafka Connect cluster // deployed to Google Cloud Platform. GcpConfig *ConnectGcpConfig `json:"gcpConfig,omitempty"` // KafkaCluster: Required. Immutable. The name of the Kafka cluster this Kafka // Connect cluster is attached to. Structured like: // projects/{project}/locations/{location}/clusters/{cluster} KafkaCluster string `json:"kafkaCluster,omitempty"` // Labels: Optional. Labels as key value pairs. Labels map[string]string `json:"labels,omitempty"` // Name: Identifier. The name of the Kafka Connect cluster. Structured like: // projects/{project_number}/locations/{location}/connectClusters/{connect_clust // er_id} Name string `json:"name,omitempty"` // State: Output only. The current state of the cluster. // // Possible values: // "STATE_UNSPECIFIED" - A state was not specified. // "CREATING" - The cluster is being created. // "ACTIVE" - The cluster is active. // "DELETING" - The cluster is being deleted. State string `json:"state,omitempty"` // UpdateTime: Output only. The time when the cluster was last updated. UpdateTime string `json:"updateTime,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CapacityConfig") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CapacityConfig") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ConnectCluster: An Apache Kafka Connect cluster deployed in a location.
func (ConnectCluster) MarshalJSON ¶ added in v0.228.0
func (s ConnectCluster) MarshalJSON() ([]byte, error)
type ConnectGcpConfig ¶ added in v0.228.0
type ConnectGcpConfig struct { // AccessConfig: Required. Access configuration for the Kafka Connect cluster. AccessConfig *ConnectAccessConfig `json:"accessConfig,omitempty"` // SecretPaths: Optional. Secrets to load into workers. Exact SecretVersions // from Secret Manager must be provided -- aliases are not supported. Up to 32 // secrets may be loaded into one cluster. Format: projects//secrets//versions/ SecretPaths []string `json:"secretPaths,omitempty"` // ForceSendFields is a list of field names (e.g. "AccessConfig") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccessConfig") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ConnectGcpConfig: Configuration properties for a Kafka Connect cluster deployed to Google Cloud Platform.
func (ConnectGcpConfig) MarshalJSON ¶ added in v0.228.0
func (s ConnectGcpConfig) MarshalJSON() ([]byte, error)
type ConnectNetworkConfig ¶ added in v0.228.0
type ConnectNetworkConfig struct { // AdditionalSubnets: Optional. Additional subnets may be specified. They may // be in another region, but must be in the same VPC network. The Connect // workers can communicate with network endpoints in either the primary or // additional subnets. AdditionalSubnets []string `json:"additionalSubnets,omitempty"` // DnsDomainNames: Optional. Additional DNS domain names from the subnet's // network to be made visible to the Connect Cluster. When using MirrorMaker2, // it's necessary to add the bootstrap address's dns domain name of the target // cluster to make it visible to the connector. For example: // my-kafka-cluster.us-central1.managedkafka.my-project.cloud.goog DnsDomainNames []string `json:"dnsDomainNames,omitempty"` // PrimarySubnet: Required. VPC subnet to make available to the Kafka Connect // cluster. Structured like: // projects/{project}/regions/{region}/subnetworks/{subnet_id} It is used to // create a Private Service Connect (PSC) interface for the Kafka Connect // workers. It must be located in the same region as the Kafka Connect cluster. // The CIDR range of the subnet must be within the IPv4 address ranges for // private networks, as specified in RFC 1918. The primary subnet CIDR range // must have a minimum size of /22 (1024 addresses). PrimarySubnet string `json:"primarySubnet,omitempty"` // ForceSendFields is a list of field names (e.g. "AdditionalSubnets") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AdditionalSubnets") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ConnectNetworkConfig: The configuration of a Virtual Private Cloud (VPC) network that can access the Kafka Connect cluster.
func (ConnectNetworkConfig) MarshalJSON ¶ added in v0.228.0
func (s ConnectNetworkConfig) MarshalJSON() ([]byte, error)
type Connector ¶ added in v0.228.0
type Connector struct { // Configs: Optional. Connector config as keys/values. The keys of the map are // connector property names, for example: `connector.class`, `tasks.max`, // `key.converter`. Configs map[string]string `json:"configs,omitempty"` // Name: Identifier. The name of the connector. Structured like: // projects/{project}/locations/{location}/connectClusters/{connect_cluster}/con // nectors/{connector} Name string `json:"name,omitempty"` // State: Output only. The current state of the connector. // // Possible values: // "STATE_UNSPECIFIED" - A state was not specified. // "UNASSIGNED" - The connector is not assigned to any tasks, usually // transient. // "RUNNING" - The connector is running. // "PAUSED" - The connector has been paused. // "FAILED" - The connector has failed. See logs for why. // "RESTARTING" - The connector is restarting. // "STOPPED" - The connector has been stopped. State string `json:"state,omitempty"` // TaskRestartPolicy: Optional. Restarts the individual tasks of a Connector. TaskRestartPolicy *TaskRetryPolicy `json:"taskRestartPolicy,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Configs") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Configs") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Connector: A Kafka Connect connector in a given ConnectCluster.
func (Connector) MarshalJSON ¶ added in v0.228.0
type ConsumerGroup ¶
type ConsumerGroup struct { // Name: Identifier. The name of the consumer group. The `consumer_group` // segment is used when connecting directly to the cluster. Structured like: // projects/{project}/locations/{location}/clusters/{cluster}/consumerGroups/{co // nsumer_group} Name string `json:"name,omitempty"` // Topics: Optional. Metadata for this consumer group for all topics it has // metadata for. The key of the map is a topic name, structured like: // projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic} Topics map[string]ConsumerTopicMetadata `json:"topics,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Name") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Name") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ConsumerGroup: A Kafka consumer group in a given cluster.
func (ConsumerGroup) MarshalJSON ¶
func (s ConsumerGroup) MarshalJSON() ([]byte, error)
type ConsumerPartitionMetadata ¶
type ConsumerPartitionMetadata struct { // Metadata: Optional. The associated metadata for this partition, or empty if // it does not exist. Metadata string `json:"metadata,omitempty"` // Offset: Required. The current offset for this partition, or 0 if no offset // has been committed. Offset int64 `json:"offset,omitempty,string"` // ForceSendFields is a list of field names (e.g. "Metadata") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Metadata") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ConsumerPartitionMetadata: Metadata for a consumer group corresponding to a specific partition.
func (ConsumerPartitionMetadata) MarshalJSON ¶
func (s ConsumerPartitionMetadata) MarshalJSON() ([]byte, error)
type ConsumerTopicMetadata ¶
type ConsumerTopicMetadata struct { // Partitions: Optional. Metadata for this consumer group and topic for all // partition indexes it has metadata for. Partitions map[string]ConsumerPartitionMetadata `json:"partitions,omitempty"` // ForceSendFields is a list of field names (e.g. "Partitions") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Partitions") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ConsumerTopicMetadata: Metadata for a consumer group corresponding to a specific topic.
func (ConsumerTopicMetadata) MarshalJSON ¶
func (s ConsumerTopicMetadata) MarshalJSON() ([]byte, error)
type Empty ¶
type Empty struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` }
Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
type GcpConfig ¶
type GcpConfig struct { // AccessConfig: Required. Access configuration for the Kafka cluster. AccessConfig *AccessConfig `json:"accessConfig,omitempty"` // KmsKey: Optional. Immutable. The Cloud KMS Key name to use for encryption. // The key must be located in the same region as the cluster and cannot be // changed. Structured like: // projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypt // o_key}. KmsKey string `json:"kmsKey,omitempty"` // ForceSendFields is a list of field names (e.g. "AccessConfig") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccessConfig") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
GcpConfig: Configuration properties for a Kafka cluster deployed to Google Cloud Platform.
func (GcpConfig) MarshalJSON ¶
type ListAclsResponse ¶ added in v0.230.0
type ListAclsResponse struct { // Acls: The list of acls in the requested parent. The order of the acls is // unspecified. Acls []*Acl `json:"acls,omitempty"` // NextPageToken: A token that can be sent as `page_token` to retrieve the next // page of results. If this field is omitted, there are no more results. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Acls") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Acls") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ListAclsResponse: Response for ListAcls.
func (ListAclsResponse) MarshalJSON ¶ added in v0.230.0
func (s ListAclsResponse) MarshalJSON() ([]byte, error)
type ListClustersResponse ¶
type ListClustersResponse struct { // Clusters: The list of Clusters in the requested parent. Clusters []*Cluster `json:"clusters,omitempty"` // NextPageToken: A token that can be sent as `page_token` to retrieve the next // page of results. If this field is omitted, there are no more results. NextPageToken string `json:"nextPageToken,omitempty"` // Unreachable: Locations that could not be reached. Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Clusters") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Clusters") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ListClustersResponse: Response for ListClusters.
func (ListClustersResponse) MarshalJSON ¶
func (s ListClustersResponse) MarshalJSON() ([]byte, error)
type ListConnectClustersResponse ¶ added in v0.228.0
type ListConnectClustersResponse struct { // ConnectClusters: The list of Connect clusters in the requested parent. ConnectClusters []*ConnectCluster `json:"connectClusters,omitempty"` // NextPageToken: A token that can be sent as `page_token` to retrieve the next // page of results. If this field is omitted, there are no more results. NextPageToken string `json:"nextPageToken,omitempty"` // Unreachable: Locations that could not be reached. Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ConnectClusters") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ConnectClusters") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ListConnectClustersResponse: Response for ListConnectClusters.
func (ListConnectClustersResponse) MarshalJSON ¶ added in v0.228.0
func (s ListConnectClustersResponse) MarshalJSON() ([]byte, error)
type ListConnectorsResponse ¶ added in v0.228.0
type ListConnectorsResponse struct { // Connectors: The list of connectors in the requested parent. Connectors []*Connector `json:"connectors,omitempty"` // NextPageToken: A token that can be sent as `page_token` to retrieve the next // page of results. If this field is omitted, there are no more results. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Connectors") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Connectors") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ListConnectorsResponse: Response for ListConnectors.
func (ListConnectorsResponse) MarshalJSON ¶ added in v0.228.0
func (s ListConnectorsResponse) MarshalJSON() ([]byte, error)
type ListConsumerGroupsResponse ¶
type ListConsumerGroupsResponse struct { // ConsumerGroups: The list of consumer group in the requested parent. The // order of the consumer groups is unspecified. ConsumerGroups []*ConsumerGroup `json:"consumerGroups,omitempty"` // NextPageToken: A token that can be sent as `page_token` to retrieve the next // page of results. If this field is omitted, there are no more results. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ConsumerGroups") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ConsumerGroups") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ListConsumerGroupsResponse: Response for ListConsumerGroups.
func (ListConsumerGroupsResponse) MarshalJSON ¶
func (s ListConsumerGroupsResponse) MarshalJSON() ([]byte, error)
type ListLocationsResponse ¶
type ListLocationsResponse struct { // Locations: A list of locations that matches the specified filter in the // request. Locations []*Location `json:"locations,omitempty"` // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Locations") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Locations") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ListLocationsResponse: The response message for Locations.ListLocations.
func (ListLocationsResponse) MarshalJSON ¶
func (s ListLocationsResponse) MarshalJSON() ([]byte, error)
type ListOperationsResponse ¶
type ListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` // Operations: A list of operations that matches the specified filter in the // request. Operations []*Operation `json:"operations,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ListOperationsResponse: The response message for Operations.ListOperations.
func (ListOperationsResponse) MarshalJSON ¶
func (s ListOperationsResponse) MarshalJSON() ([]byte, error)
type ListTopicsResponse ¶
type ListTopicsResponse struct { // NextPageToken: A token that can be sent as `page_token` to retrieve the next // page of results. If this field is omitted, there are no more results. NextPageToken string `json:"nextPageToken,omitempty"` // Topics: The list of topics in the requested parent. The order of the topics // is unspecified. Topics []*Topic `json:"topics,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ListTopicsResponse: Response for ListTopics.
func (ListTopicsResponse) MarshalJSON ¶
func (s ListTopicsResponse) MarshalJSON() ([]byte, error)
type Location ¶
type Location struct { // DisplayName: The friendly name for this location, typically a nearby city // name. For example, "Tokyo". DisplayName string `json:"displayName,omitempty"` // Labels: Cross-service attributes for the location. For example // {"cloud.googleapis.com/region": "us-east1"} Labels map[string]string `json:"labels,omitempty"` // LocationId: The canonical id for this location. For example: "us-east1". LocationId string `json:"locationId,omitempty"` // Metadata: Service-specific metadata. For example the available capacity at // the given location. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: Resource name for the location, which may vary between // implementations. For example: // "projects/example-project/locations/us-east1" Name string `json:"name,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DisplayName") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Location: A resource that represents a Google Cloud location.
func (Location) MarshalJSON ¶
type NetworkConfig ¶
type NetworkConfig struct { // Subnet: Required. Name of the VPC subnet in which to create Private Service // Connect (PSC) endpoints for the Kafka brokers and bootstrap address. // Structured like: projects/{project}/regions/{region}/subnetworks/{subnet_id} // The subnet must be located in the same region as the Kafka cluster. The // project may differ. Multiple subnets from the same parent network must not // be specified. Subnet string `json:"subnet,omitempty"` // ForceSendFields is a list of field names (e.g. "Subnet") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Subnet") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
NetworkConfig: The configuration of a Virtual Private Cloud (VPC) network that can access the Kafka cluster.
func (NetworkConfig) MarshalJSON ¶
func (s NetworkConfig) MarshalJSON() ([]byte, error)
type Operation ¶
type Operation struct { // Done: If the value is `false`, it means the operation is still in progress. // If `true`, the operation is completed, and either `error` or `response` is // available. Done bool `json:"done,omitempty"` // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` // Metadata: Service-specific metadata associated with the operation. It // typically contains progress information and common metadata such as create // time. Some services might not provide such metadata. Any method that returns // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: The server-assigned name, which is only unique within the same service // that originally returns it. If you use the default HTTP mapping, the `name` // should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` // Response: The normal, successful response of the operation. If the original // method returns no data on success, such as `Delete`, the response is // `google.protobuf.Empty`. If the original method is standard // `Get`/`Create`/`Update`, the response should be the resource. For other // methods, the response should have the type `XxxResponse`, where `Xxx` is the // original method name. For example, if the original method name is // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Done") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Done") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Operation: This resource represents a long-running operation that is the result of a network API call.
func (Operation) MarshalJSON ¶
type OperationMetadata ¶
type OperationMetadata struct { // ApiVersion: Output only. API version used to start the operation. ApiVersion string `json:"apiVersion,omitempty"` // CreateTime: Output only. The time the operation was created. CreateTime string `json:"createTime,omitempty"` // EndTime: Output only. The time the operation finished running. EndTime string `json:"endTime,omitempty"` // RequestedCancellation: Output only. Identifies whether the user has // requested cancellation of the operation. Operations that have been cancelled // successfully have Operation.error value with a google.rpc.Status.code of 1, // corresponding to `Code.CANCELLED`. RequestedCancellation bool `json:"requestedCancellation,omitempty"` // StatusMessage: Output only. Human-readable status of the operation, if any. StatusMessage string `json:"statusMessage,omitempty"` // Target: Output only. Server-defined resource path for the target of the // operation. Target string `json:"target,omitempty"` // Verb: Output only. Name of the verb executed by the operation. Verb string `json:"verb,omitempty"` // ForceSendFields is a list of field names (e.g. "ApiVersion") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ApiVersion") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
OperationMetadata: Represents the metadata of the long-running operation.
func (OperationMetadata) MarshalJSON ¶
func (s OperationMetadata) MarshalJSON() ([]byte, error)
type PauseConnectorRequest ¶ added in v0.228.0
type PauseConnectorRequest struct { }
PauseConnectorRequest: Request for PauseConnector.
type PauseConnectorResponse ¶ added in v0.228.0
type PauseConnectorResponse struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` }
PauseConnectorResponse: Response for PauseConnector.
type ProjectsLocationsClustersAclsAddAclEntryCall ¶ added in v0.230.0
type ProjectsLocationsClustersAclsAddAclEntryCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsClustersAclsAddAclEntryCall) Context ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsAddAclEntryCall) Context(ctx context.Context) *ProjectsLocationsClustersAclsAddAclEntryCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsClustersAclsAddAclEntryCall) Do ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsAddAclEntryCall) Do(opts ...googleapi.CallOption) (*AddAclEntryResponse, error)
Do executes the "managedkafka.projects.locations.clusters.acls.addAclEntry" call. Any non-2xx status code is an error. Response headers are in either *AddAclEntryResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsClustersAclsAddAclEntryCall) Fields ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsAddAclEntryCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersAclsAddAclEntryCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsClustersAclsAddAclEntryCall) Header ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsAddAclEntryCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsClustersAclsCreateCall ¶ added in v0.230.0
type ProjectsLocationsClustersAclsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsClustersAclsCreateCall) AclId ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsCreateCall) AclId(aclId string) *ProjectsLocationsClustersAclsCreateCall
AclId sets the optional parameter "aclId": Required. The ID to use for the acl, which will become the final component of the acl's name. The structure of `acl_id` defines the Resource Pattern (resource_type, resource_name, pattern_type) of the acl. `acl_id` is structured like one of the following: For acls on the cluster: `cluster` For acls on a single resource within the cluster: `topic/{resource_name}` `consumerGroup/{resource_name}` `transactionalId/{resource_name}` For acls on all resources that match a prefix: `topicPrefixed/{resource_name}` `consumerGroupPrefixed/{resource_name}` `transactionalIdPrefixed/{resource_name}` For acls on all resources of a given type (i.e. the wildcard literal "*"): `allTopics` (represents `topic/*`) `allConsumerGroups` (represents `consumerGroup/*`) `allTransactionalIds` (represents `transactionalId/*`)
func (*ProjectsLocationsClustersAclsCreateCall) Context ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsCreateCall) Context(ctx context.Context) *ProjectsLocationsClustersAclsCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsClustersAclsCreateCall) Do ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsCreateCall) Do(opts ...googleapi.CallOption) (*Acl, error)
Do executes the "managedkafka.projects.locations.clusters.acls.create" call. Any non-2xx status code is an error. Response headers are in either *Acl.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsClustersAclsCreateCall) Fields ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersAclsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsClustersAclsCreateCall) Header ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsClustersAclsDeleteCall ¶ added in v0.230.0
type ProjectsLocationsClustersAclsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsClustersAclsDeleteCall) Context ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsDeleteCall) Context(ctx context.Context) *ProjectsLocationsClustersAclsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsClustersAclsDeleteCall) Do ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "managedkafka.projects.locations.clusters.acls.delete" call. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsClustersAclsDeleteCall) Fields ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersAclsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsClustersAclsDeleteCall) Header ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsClustersAclsGetCall ¶ added in v0.230.0
type ProjectsLocationsClustersAclsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsClustersAclsGetCall) Context ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsGetCall) Context(ctx context.Context) *ProjectsLocationsClustersAclsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsClustersAclsGetCall) Do ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsGetCall) Do(opts ...googleapi.CallOption) (*Acl, error)
Do executes the "managedkafka.projects.locations.clusters.acls.get" call. Any non-2xx status code is an error. Response headers are in either *Acl.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsClustersAclsGetCall) Fields ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersAclsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsClustersAclsGetCall) Header ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsClustersAclsGetCall) IfNoneMatch ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersAclsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsClustersAclsListCall ¶ added in v0.230.0
type ProjectsLocationsClustersAclsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsClustersAclsListCall) Context ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsListCall) Context(ctx context.Context) *ProjectsLocationsClustersAclsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsClustersAclsListCall) Do ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsListCall) Do(opts ...googleapi.CallOption) (*ListAclsResponse, error)
Do executes the "managedkafka.projects.locations.clusters.acls.list" call. Any non-2xx status code is an error. Response headers are in either *ListAclsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsClustersAclsListCall) Fields ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersAclsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsClustersAclsListCall) Header ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsClustersAclsListCall) IfNoneMatch ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersAclsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsClustersAclsListCall) PageSize ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsListCall) PageSize(pageSize int64) *ProjectsLocationsClustersAclsListCall
PageSize sets the optional parameter "pageSize": The maximum number of acls to return. The service may return fewer than this value. If unset or zero, all acls for the parent is returned.
func (*ProjectsLocationsClustersAclsListCall) PageToken ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsListCall) PageToken(pageToken string) *ProjectsLocationsClustersAclsListCall
PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListAcls` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAcls` must match the call that provided the page token.
func (*ProjectsLocationsClustersAclsListCall) Pages ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsListCall) Pages(ctx context.Context, f func(*ListAclsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsClustersAclsPatchCall ¶ added in v0.230.0
type ProjectsLocationsClustersAclsPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsClustersAclsPatchCall) Context ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsPatchCall) Context(ctx context.Context) *ProjectsLocationsClustersAclsPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsClustersAclsPatchCall) Do ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsPatchCall) Do(opts ...googleapi.CallOption) (*Acl, error)
Do executes the "managedkafka.projects.locations.clusters.acls.patch" call. Any non-2xx status code is an error. Response headers are in either *Acl.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsClustersAclsPatchCall) Fields ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersAclsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsClustersAclsPatchCall) Header ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsClustersAclsPatchCall) UpdateMask ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsClustersAclsPatchCall
UpdateMask sets the optional parameter "updateMask": Field mask is used to specify the fields to be overwritten in the Acl resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask.
type ProjectsLocationsClustersAclsRemoveAclEntryCall ¶ added in v0.230.0
type ProjectsLocationsClustersAclsRemoveAclEntryCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsClustersAclsRemoveAclEntryCall) Context ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsRemoveAclEntryCall) Context(ctx context.Context) *ProjectsLocationsClustersAclsRemoveAclEntryCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsClustersAclsRemoveAclEntryCall) Do ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsRemoveAclEntryCall) Do(opts ...googleapi.CallOption) (*RemoveAclEntryResponse, error)
Do executes the "managedkafka.projects.locations.clusters.acls.removeAclEntry" call. Any non-2xx status code is an error. Response headers are in either *RemoveAclEntryResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsClustersAclsRemoveAclEntryCall) Fields ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsRemoveAclEntryCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersAclsRemoveAclEntryCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsClustersAclsRemoveAclEntryCall) Header ¶ added in v0.230.0
func (c *ProjectsLocationsClustersAclsRemoveAclEntryCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsClustersAclsService ¶ added in v0.230.0
type ProjectsLocationsClustersAclsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsClustersAclsService ¶ added in v0.230.0
func NewProjectsLocationsClustersAclsService(s *Service) *ProjectsLocationsClustersAclsService
func (*ProjectsLocationsClustersAclsService) AddAclEntry ¶ added in v0.230.0
func (r *ProjectsLocationsClustersAclsService) AddAclEntry(acl string, aclentry *AclEntry) *ProjectsLocationsClustersAclsAddAclEntryCall
AddAclEntry: Incremental update: Adds an acl entry to an acl. Creates the acl if it does not exist yet.
- acl: The name of the acl to add the acl entry to. Structured like: `projects/{project}/locations/{location}/clusters/{cluster}/acls/{acl_id}`. The structure of `acl_id` defines the Resource Pattern (resource_type, resource_name, pattern_type) of the acl. See `Acl.name` for details.
func (*ProjectsLocationsClustersAclsService) Create ¶ added in v0.230.0
func (r *ProjectsLocationsClustersAclsService) Create(parent string, acl *Acl) *ProjectsLocationsClustersAclsCreateCall
Create: Creates a new acl in the given project, location, and cluster.
- parent: The parent cluster in which to create the acl. Structured like `projects/{project}/locations/{location}/clusters/{cluster}`.
func (*ProjectsLocationsClustersAclsService) Delete ¶ added in v0.230.0
func (r *ProjectsLocationsClustersAclsService) Delete(name string) *ProjectsLocationsClustersAclsDeleteCall
Delete: Deletes an acl.
- name: The name of the acl to delete. Structured like: `projects/{project}/locations/{location}/clusters/{cluster}/acls/{acl_id}`. The structure of `acl_id` defines the Resource Pattern (resource_type, resource_name, pattern_type) of the acl. See `Acl.name` for details.
func (*ProjectsLocationsClustersAclsService) Get ¶ added in v0.230.0
func (r *ProjectsLocationsClustersAclsService) Get(name string) *ProjectsLocationsClustersAclsGetCall
Get: Returns the properties of a single acl.
- name: The name of the acl to return. Structured like: `projects/{project}/locations/{location}/clusters/{cluster}/acls/{acl_id}`. The structure of `acl_id` defines the Resource Pattern (resource_type, resource_name, pattern_type) of the acl. See `Acl.name` for details.
func (*ProjectsLocationsClustersAclsService) List ¶ added in v0.230.0
func (r *ProjectsLocationsClustersAclsService) List(parent string) *ProjectsLocationsClustersAclsListCall
List: Lists the acls in a given cluster.
- parent: The parent cluster whose acls are to be listed. Structured like `projects/{project}/locations/{location}/clusters/{cluster}`.
func (*ProjectsLocationsClustersAclsService) Patch ¶ added in v0.230.0
func (r *ProjectsLocationsClustersAclsService) Patch(name string, acl *Acl) *ProjectsLocationsClustersAclsPatchCall
Patch: Updates the properties of a single acl.
- name: Identifier. The name for the acl. Represents a single Resource Pattern. Structured like: projects/{project}/locations/{location}/clusters/{cluster}/acls/{acl_id} The structure of `acl_id` defines the Resource Pattern (resource_type, resource_name, pattern_type) of the acl. `acl_id` is structured like one of the following: For acls on the cluster: `cluster` For acls on a single resource within the cluster: `topic/{resource_name}` `consumerGroup/{resource_name}` `transactionalId/{resource_name}` For acls on all resources that match a prefix: `topicPrefixed/{resource_name}` `consumerGroupPrefixed/{resource_name}` `transactionalIdPrefixed/{resource_name}` For acls on all resources of a given type (i.e. the wildcard literal "*"): `allTopics` (represents `topic/*`) `allConsumerGroups` (represents `consumerGroup/*`) `allTransactionalIds` (represents `transactionalId/*`).
func (*ProjectsLocationsClustersAclsService) RemoveAclEntry ¶ added in v0.230.0
func (r *ProjectsLocationsClustersAclsService) RemoveAclEntry(acl string, aclentry *AclEntry) *ProjectsLocationsClustersAclsRemoveAclEntryCall
RemoveAclEntry: Incremental update: Removes an acl entry from an acl. Deletes the acl if its acl entries become empty (i.e. if the removed entry was the last one in the acl).
- acl: The name of the acl to remove the acl entry from. Structured like: `projects/{project}/locations/{location}/clusters/{cluster}/acls/{acl_id}`. The structure of `acl_id` defines the Resource Pattern (resource_type, resource_name, pattern_type) of the acl. See `Acl.name` for details.
type ProjectsLocationsClustersConsumerGroupsDeleteCall ¶
type ProjectsLocationsClustersConsumerGroupsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsClustersConsumerGroupsDeleteCall) Context ¶
func (c *ProjectsLocationsClustersConsumerGroupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsClustersConsumerGroupsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsClustersConsumerGroupsDeleteCall) Do ¶
func (c *ProjectsLocationsClustersConsumerGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "managedkafka.projects.locations.clusters.consumerGroups.delete" call. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsClustersConsumerGroupsDeleteCall) Fields ¶
func (c *ProjectsLocationsClustersConsumerGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersConsumerGroupsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsClustersConsumerGroupsDeleteCall) Header ¶
func (c *ProjectsLocationsClustersConsumerGroupsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsClustersConsumerGroupsGetCall ¶
type ProjectsLocationsClustersConsumerGroupsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsClustersConsumerGroupsGetCall) Context ¶
func (c *ProjectsLocationsClustersConsumerGroupsGetCall) Context(ctx context.Context) *ProjectsLocationsClustersConsumerGroupsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsClustersConsumerGroupsGetCall) Do ¶
func (c *ProjectsLocationsClustersConsumerGroupsGetCall) Do(opts ...googleapi.CallOption) (*ConsumerGroup, error)
Do executes the "managedkafka.projects.locations.clusters.consumerGroups.get" call. Any non-2xx status code is an error. Response headers are in either *ConsumerGroup.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsClustersConsumerGroupsGetCall) Fields ¶
func (c *ProjectsLocationsClustersConsumerGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersConsumerGroupsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsClustersConsumerGroupsGetCall) Header ¶
func (c *ProjectsLocationsClustersConsumerGroupsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsClustersConsumerGroupsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsClustersConsumerGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersConsumerGroupsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsClustersConsumerGroupsListCall ¶
type ProjectsLocationsClustersConsumerGroupsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsClustersConsumerGroupsListCall) Context ¶
func (c *ProjectsLocationsClustersConsumerGroupsListCall) Context(ctx context.Context) *ProjectsLocationsClustersConsumerGroupsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsClustersConsumerGroupsListCall) Do ¶
func (c *ProjectsLocationsClustersConsumerGroupsListCall) Do(opts ...googleapi.CallOption) (*ListConsumerGroupsResponse, error)
Do executes the "managedkafka.projects.locations.clusters.consumerGroups.list" call. Any non-2xx status code is an error. Response headers are in either *ListConsumerGroupsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsClustersConsumerGroupsListCall) Fields ¶
func (c *ProjectsLocationsClustersConsumerGroupsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersConsumerGroupsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsClustersConsumerGroupsListCall) Header ¶
func (c *ProjectsLocationsClustersConsumerGroupsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsClustersConsumerGroupsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsClustersConsumerGroupsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersConsumerGroupsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsClustersConsumerGroupsListCall) PageSize ¶
func (c *ProjectsLocationsClustersConsumerGroupsListCall) PageSize(pageSize int64) *ProjectsLocationsClustersConsumerGroupsListCall
PageSize sets the optional parameter "pageSize": The maximum number of consumer groups to return. The service may return fewer than this value. If unset or zero, all consumer groups for the parent is returned.
func (*ProjectsLocationsClustersConsumerGroupsListCall) PageToken ¶
func (c *ProjectsLocationsClustersConsumerGroupsListCall) PageToken(pageToken string) *ProjectsLocationsClustersConsumerGroupsListCall
PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListConsumerGroups` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListConsumerGroups` must match the call that provided the page token.
func (*ProjectsLocationsClustersConsumerGroupsListCall) Pages ¶
func (c *ProjectsLocationsClustersConsumerGroupsListCall) Pages(ctx context.Context, f func(*ListConsumerGroupsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsClustersConsumerGroupsPatchCall ¶
type ProjectsLocationsClustersConsumerGroupsPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsClustersConsumerGroupsPatchCall) Context ¶
func (c *ProjectsLocationsClustersConsumerGroupsPatchCall) Context(ctx context.Context) *ProjectsLocationsClustersConsumerGroupsPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsClustersConsumerGroupsPatchCall) Do ¶
func (c *ProjectsLocationsClustersConsumerGroupsPatchCall) Do(opts ...googleapi.CallOption) (*ConsumerGroup, error)
Do executes the "managedkafka.projects.locations.clusters.consumerGroups.patch" call. Any non-2xx status code is an error. Response headers are in either *ConsumerGroup.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsClustersConsumerGroupsPatchCall) Fields ¶
func (c *ProjectsLocationsClustersConsumerGroupsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersConsumerGroupsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsClustersConsumerGroupsPatchCall) Header ¶
func (c *ProjectsLocationsClustersConsumerGroupsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsClustersConsumerGroupsPatchCall) UpdateMask ¶
func (c *ProjectsLocationsClustersConsumerGroupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsClustersConsumerGroupsPatchCall
UpdateMask sets the optional parameter "updateMask": Required. Field mask is used to specify the fields to be overwritten in the ConsumerGroup resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The mask is required and a value of * will update all fields.
type ProjectsLocationsClustersConsumerGroupsService ¶
type ProjectsLocationsClustersConsumerGroupsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsClustersConsumerGroupsService ¶
func NewProjectsLocationsClustersConsumerGroupsService(s *Service) *ProjectsLocationsClustersConsumerGroupsService
func (*ProjectsLocationsClustersConsumerGroupsService) Delete ¶
func (r *ProjectsLocationsClustersConsumerGroupsService) Delete(name string) *ProjectsLocationsClustersConsumerGroupsDeleteCall
Delete: Deletes a single consumer group.
- name: The name of the consumer group to delete. `projects/{project}/locations/{location}/clusters/{cluster}/consumerGroups/ {consumerGroup}`.
func (*ProjectsLocationsClustersConsumerGroupsService) Get ¶
func (r *ProjectsLocationsClustersConsumerGroupsService) Get(name string) *ProjectsLocationsClustersConsumerGroupsGetCall
Get: Returns the properties of a single consumer group.
- name: The name of the consumer group whose configuration to return. `projects/{project}/locations/{location}/clusters/{cluster}/consumerGroups/ {consumerGroup}`.
func (*ProjectsLocationsClustersConsumerGroupsService) List ¶
func (r *ProjectsLocationsClustersConsumerGroupsService) List(parent string) *ProjectsLocationsClustersConsumerGroupsListCall
List: Lists the consumer groups in a given cluster.
- parent: The parent cluster whose consumer groups are to be listed. Structured like `projects/{project}/locations/{location}/clusters/{cluster}`.
func (*ProjectsLocationsClustersConsumerGroupsService) Patch ¶
func (r *ProjectsLocationsClustersConsumerGroupsService) Patch(name string, consumergroup *ConsumerGroup) *ProjectsLocationsClustersConsumerGroupsPatchCall
Patch: Updates the properties of a single consumer group.
- name: Identifier. The name of the consumer group. The `consumer_group` segment is used when connecting directly to the cluster. Structured like: projects/{project}/locations/{location}/clusters/{cluster}/consumerGroups/{ consumer_group}.
type ProjectsLocationsClustersCreateCall ¶
type ProjectsLocationsClustersCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsClustersCreateCall) ClusterId ¶
func (c *ProjectsLocationsClustersCreateCall) ClusterId(clusterId string) *ProjectsLocationsClustersCreateCall
ClusterId sets the optional parameter "clusterId": Required. The ID to use for the cluster, which will become the final component of the cluster's name. The ID must be 1-63 characters long, and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` to comply with RFC 1035. This value is structured like: `my-cluster-id`.
func (*ProjectsLocationsClustersCreateCall) Context ¶
func (c *ProjectsLocationsClustersCreateCall) Context(ctx context.Context) *ProjectsLocationsClustersCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsClustersCreateCall) Do ¶
func (c *ProjectsLocationsClustersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "managedkafka.projects.locations.clusters.create" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsClustersCreateCall) Fields ¶
func (c *ProjectsLocationsClustersCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsClustersCreateCall) Header ¶
func (c *ProjectsLocationsClustersCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsClustersCreateCall) RequestId ¶
func (c *ProjectsLocationsClustersCreateCall) RequestId(requestId string) *ProjectsLocationsClustersCreateCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID to avoid duplication of requests. If a request times out or fails, retrying with the same ID allows the server to recognize the previous attempt. For at least 60 minutes, the server ignores duplicate requests bearing the same ID. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID within 60 minutes of the last request, the server checks if an original operation with the same request ID was received. If so, the server ignores the second request. The request ID must be a valid UUID. A zero UUID is not supported (00000000-0000-0000-0000-000000000000).
type ProjectsLocationsClustersDeleteCall ¶
type ProjectsLocationsClustersDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsClustersDeleteCall) Context ¶
func (c *ProjectsLocationsClustersDeleteCall) Context(ctx context.Context) *ProjectsLocationsClustersDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsClustersDeleteCall) Do ¶
func (c *ProjectsLocationsClustersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "managedkafka.projects.locations.clusters.delete" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsClustersDeleteCall) Fields ¶
func (c *ProjectsLocationsClustersDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsClustersDeleteCall) Header ¶
func (c *ProjectsLocationsClustersDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsClustersDeleteCall) RequestId ¶
func (c *ProjectsLocationsClustersDeleteCall) RequestId(requestId string) *ProjectsLocationsClustersDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID to avoid duplication of requests. If a request times out or fails, retrying with the same ID allows the server to recognize the previous attempt. For at least 60 minutes, the server ignores duplicate requests bearing the same ID. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID within 60 minutes of the last request, the server checks if an original operation with the same request ID was received. If so, the server ignores the second request. The request ID must be a valid UUID. A zero UUID is not supported (00000000-0000-0000-0000-000000000000).
type ProjectsLocationsClustersGetCall ¶
type ProjectsLocationsClustersGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsClustersGetCall) Context ¶
func (c *ProjectsLocationsClustersGetCall) Context(ctx context.Context) *ProjectsLocationsClustersGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsClustersGetCall) Do ¶
func (c *ProjectsLocationsClustersGetCall) Do(opts ...googleapi.CallOption) (*Cluster, error)
Do executes the "managedkafka.projects.locations.clusters.get" call. Any non-2xx status code is an error. Response headers are in either *Cluster.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsClustersGetCall) Fields ¶
func (c *ProjectsLocationsClustersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsClustersGetCall) Header ¶
func (c *ProjectsLocationsClustersGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsClustersGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsClustersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsClustersListCall ¶
type ProjectsLocationsClustersListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsClustersListCall) Context ¶
func (c *ProjectsLocationsClustersListCall) Context(ctx context.Context) *ProjectsLocationsClustersListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsClustersListCall) Do ¶
func (c *ProjectsLocationsClustersListCall) Do(opts ...googleapi.CallOption) (*ListClustersResponse, error)
Do executes the "managedkafka.projects.locations.clusters.list" call. Any non-2xx status code is an error. Response headers are in either *ListClustersResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsClustersListCall) Fields ¶
func (c *ProjectsLocationsClustersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsClustersListCall) Filter ¶
func (c *ProjectsLocationsClustersListCall) Filter(filter string) *ProjectsLocationsClustersListCall
Filter sets the optional parameter "filter": Filter expression for the result.
func (*ProjectsLocationsClustersListCall) Header ¶
func (c *ProjectsLocationsClustersListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsClustersListCall) IfNoneMatch ¶
func (c *ProjectsLocationsClustersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsClustersListCall) OrderBy ¶
func (c *ProjectsLocationsClustersListCall) OrderBy(orderBy string) *ProjectsLocationsClustersListCall
OrderBy sets the optional parameter "orderBy": Order by fields for the result.
func (*ProjectsLocationsClustersListCall) PageSize ¶
func (c *ProjectsLocationsClustersListCall) PageSize(pageSize int64) *ProjectsLocationsClustersListCall
PageSize sets the optional parameter "pageSize": The maximum number of clusters to return. The service may return fewer than this value. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsClustersListCall) PageToken ¶
func (c *ProjectsLocationsClustersListCall) PageToken(pageToken string) *ProjectsLocationsClustersListCall
PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListClusters` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListClusters` must match the call that provided the page token.
func (*ProjectsLocationsClustersListCall) Pages ¶
func (c *ProjectsLocationsClustersListCall) Pages(ctx context.Context, f func(*ListClustersResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsClustersPatchCall ¶
type ProjectsLocationsClustersPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsClustersPatchCall) Context ¶
func (c *ProjectsLocationsClustersPatchCall) Context(ctx context.Context) *ProjectsLocationsClustersPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsClustersPatchCall) Do ¶
func (c *ProjectsLocationsClustersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "managedkafka.projects.locations.clusters.patch" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsClustersPatchCall) Fields ¶
func (c *ProjectsLocationsClustersPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsClustersPatchCall) Header ¶
func (c *ProjectsLocationsClustersPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsClustersPatchCall) RequestId ¶
func (c *ProjectsLocationsClustersPatchCall) RequestId(requestId string) *ProjectsLocationsClustersPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID to avoid duplication of requests. If a request times out or fails, retrying with the same ID allows the server to recognize the previous attempt. For at least 60 minutes, the server ignores duplicate requests bearing the same ID. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID within 60 minutes of the last request, the server checks if an original operation with the same request ID was received. If so, the server ignores the second request. The request ID must be a valid UUID. A zero UUID is not supported (00000000-0000-0000-0000-000000000000).
func (*ProjectsLocationsClustersPatchCall) UpdateMask ¶
func (c *ProjectsLocationsClustersPatchCall) UpdateMask(updateMask string) *ProjectsLocationsClustersPatchCall
UpdateMask sets the optional parameter "updateMask": Required. Field mask is used to specify the fields to be overwritten in the cluster resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The mask is required and a value of * will update all fields.
type ProjectsLocationsClustersService ¶
type ProjectsLocationsClustersService struct { Acls *ProjectsLocationsClustersAclsService ConsumerGroups *ProjectsLocationsClustersConsumerGroupsService Topics *ProjectsLocationsClustersTopicsService // contains filtered or unexported fields }
func NewProjectsLocationsClustersService ¶
func NewProjectsLocationsClustersService(s *Service) *ProjectsLocationsClustersService
func (*ProjectsLocationsClustersService) Create ¶
func (r *ProjectsLocationsClustersService) Create(parent string, cluster *Cluster) *ProjectsLocationsClustersCreateCall
Create: Creates a new cluster in a given project and location.
- parent: The parent region in which to create the cluster. Structured like `projects/{project}/locations/{location}`.
func (*ProjectsLocationsClustersService) Delete ¶
func (r *ProjectsLocationsClustersService) Delete(name string) *ProjectsLocationsClustersDeleteCall
Delete: Deletes a single cluster.
- name: The name of the cluster to delete.
func (*ProjectsLocationsClustersService) Get ¶
func (r *ProjectsLocationsClustersService) Get(name string) *ProjectsLocationsClustersGetCall
Get: Returns the properties of a single cluster.
- name: The name of the cluster whose configuration to return.
func (*ProjectsLocationsClustersService) List ¶
func (r *ProjectsLocationsClustersService) List(parent string) *ProjectsLocationsClustersListCall
List: Lists the clusters in a given project and location.
- parent: The parent location whose clusters are to be listed. Structured like `projects/{project}/locations/{location}`.
func (*ProjectsLocationsClustersService) Patch ¶
func (r *ProjectsLocationsClustersService) Patch(name string, cluster *Cluster) *ProjectsLocationsClustersPatchCall
Patch: Updates the properties of a single cluster.
- name: Identifier. The name of the cluster. Structured like: projects/{project_number}/locations/{location}/clusters/{cluster_id}.
type ProjectsLocationsClustersTopicsCreateCall ¶
type ProjectsLocationsClustersTopicsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsClustersTopicsCreateCall) Context ¶
func (c *ProjectsLocationsClustersTopicsCreateCall) Context(ctx context.Context) *ProjectsLocationsClustersTopicsCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsClustersTopicsCreateCall) Do ¶
func (c *ProjectsLocationsClustersTopicsCreateCall) Do(opts ...googleapi.CallOption) (*Topic, error)
Do executes the "managedkafka.projects.locations.clusters.topics.create" call. Any non-2xx status code is an error. Response headers are in either *Topic.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsClustersTopicsCreateCall) Fields ¶
func (c *ProjectsLocationsClustersTopicsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersTopicsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsClustersTopicsCreateCall) Header ¶
func (c *ProjectsLocationsClustersTopicsCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsClustersTopicsCreateCall) TopicId ¶
func (c *ProjectsLocationsClustersTopicsCreateCall) TopicId(topicId string) *ProjectsLocationsClustersTopicsCreateCall
TopicId sets the optional parameter "topicId": Required. The ID to use for the topic, which will become the final component of the topic's name. This value is structured like: `my-topic-name`.
type ProjectsLocationsClustersTopicsDeleteCall ¶
type ProjectsLocationsClustersTopicsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsClustersTopicsDeleteCall) Context ¶
func (c *ProjectsLocationsClustersTopicsDeleteCall) Context(ctx context.Context) *ProjectsLocationsClustersTopicsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsClustersTopicsDeleteCall) Do ¶
func (c *ProjectsLocationsClustersTopicsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "managedkafka.projects.locations.clusters.topics.delete" call. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsClustersTopicsDeleteCall) Fields ¶
func (c *ProjectsLocationsClustersTopicsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersTopicsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsClustersTopicsDeleteCall) Header ¶
func (c *ProjectsLocationsClustersTopicsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsClustersTopicsGetCall ¶
type ProjectsLocationsClustersTopicsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsClustersTopicsGetCall) Context ¶
func (c *ProjectsLocationsClustersTopicsGetCall) Context(ctx context.Context) *ProjectsLocationsClustersTopicsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsClustersTopicsGetCall) Do ¶
func (c *ProjectsLocationsClustersTopicsGetCall) Do(opts ...googleapi.CallOption) (*Topic, error)
Do executes the "managedkafka.projects.locations.clusters.topics.get" call. Any non-2xx status code is an error. Response headers are in either *Topic.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsClustersTopicsGetCall) Fields ¶
func (c *ProjectsLocationsClustersTopicsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersTopicsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsClustersTopicsGetCall) Header ¶
func (c *ProjectsLocationsClustersTopicsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsClustersTopicsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsClustersTopicsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersTopicsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsClustersTopicsListCall ¶
type ProjectsLocationsClustersTopicsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsClustersTopicsListCall) Context ¶
func (c *ProjectsLocationsClustersTopicsListCall) Context(ctx context.Context) *ProjectsLocationsClustersTopicsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsClustersTopicsListCall) Do ¶
func (c *ProjectsLocationsClustersTopicsListCall) Do(opts ...googleapi.CallOption) (*ListTopicsResponse, error)
Do executes the "managedkafka.projects.locations.clusters.topics.list" call. Any non-2xx status code is an error. Response headers are in either *ListTopicsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsClustersTopicsListCall) Fields ¶
func (c *ProjectsLocationsClustersTopicsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersTopicsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsClustersTopicsListCall) Header ¶
func (c *ProjectsLocationsClustersTopicsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsClustersTopicsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsClustersTopicsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersTopicsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsClustersTopicsListCall) PageSize ¶
func (c *ProjectsLocationsClustersTopicsListCall) PageSize(pageSize int64) *ProjectsLocationsClustersTopicsListCall
PageSize sets the optional parameter "pageSize": The maximum number of topics to return. The service may return fewer than this value. If unset or zero, all topics for the parent is returned.
func (*ProjectsLocationsClustersTopicsListCall) PageToken ¶
func (c *ProjectsLocationsClustersTopicsListCall) PageToken(pageToken string) *ProjectsLocationsClustersTopicsListCall
PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListTopics` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListTopics` must match the call that provided the page token.
func (*ProjectsLocationsClustersTopicsListCall) Pages ¶
func (c *ProjectsLocationsClustersTopicsListCall) Pages(ctx context.Context, f func(*ListTopicsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsClustersTopicsPatchCall ¶
type ProjectsLocationsClustersTopicsPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsClustersTopicsPatchCall) Context ¶
func (c *ProjectsLocationsClustersTopicsPatchCall) Context(ctx context.Context) *ProjectsLocationsClustersTopicsPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsClustersTopicsPatchCall) Do ¶
func (c *ProjectsLocationsClustersTopicsPatchCall) Do(opts ...googleapi.CallOption) (*Topic, error)
Do executes the "managedkafka.projects.locations.clusters.topics.patch" call. Any non-2xx status code is an error. Response headers are in either *Topic.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsClustersTopicsPatchCall) Fields ¶
func (c *ProjectsLocationsClustersTopicsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersTopicsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsClustersTopicsPatchCall) Header ¶
func (c *ProjectsLocationsClustersTopicsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsClustersTopicsPatchCall) UpdateMask ¶
func (c *ProjectsLocationsClustersTopicsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsClustersTopicsPatchCall
UpdateMask sets the optional parameter "updateMask": Required. Field mask is used to specify the fields to be overwritten in the Topic resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The mask is required and a value of * will update all fields.
type ProjectsLocationsClustersTopicsService ¶
type ProjectsLocationsClustersTopicsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsClustersTopicsService ¶
func NewProjectsLocationsClustersTopicsService(s *Service) *ProjectsLocationsClustersTopicsService
func (*ProjectsLocationsClustersTopicsService) Create ¶
func (r *ProjectsLocationsClustersTopicsService) Create(parent string, topic *Topic) *ProjectsLocationsClustersTopicsCreateCall
Create: Creates a new topic in a given project and location.
- parent: The parent cluster in which to create the topic. Structured like `projects/{project}/locations/{location}/clusters/{cluster}`.
func (*ProjectsLocationsClustersTopicsService) Delete ¶
func (r *ProjectsLocationsClustersTopicsService) Delete(name string) *ProjectsLocationsClustersTopicsDeleteCall
Delete: Deletes a single topic.
- name: The name of the topic to delete. `projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}` .
func (*ProjectsLocationsClustersTopicsService) Get ¶
func (r *ProjectsLocationsClustersTopicsService) Get(name string) *ProjectsLocationsClustersTopicsGetCall
Get: Returns the properties of a single topic.
- name: The name of the topic whose configuration to return. Structured like: projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}.
func (*ProjectsLocationsClustersTopicsService) List ¶
func (r *ProjectsLocationsClustersTopicsService) List(parent string) *ProjectsLocationsClustersTopicsListCall
List: Lists the topics in a given cluster.
- parent: The parent cluster whose topics are to be listed. Structured like `projects/{project}/locations/{location}/clusters/{cluster}`.
func (*ProjectsLocationsClustersTopicsService) Patch ¶
func (r *ProjectsLocationsClustersTopicsService) Patch(name string, topic *Topic) *ProjectsLocationsClustersTopicsPatchCall
Patch: Updates the properties of a single topic.
- name: Identifier. The name of the topic. The `topic` segment is used when connecting directly to the cluster. Structured like: projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}.
type ProjectsLocationsConnectClustersConnectorsCreateCall ¶ added in v0.228.0
type ProjectsLocationsConnectClustersConnectorsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectClustersConnectorsCreateCall) ConnectorId ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsCreateCall) ConnectorId(connectorId string) *ProjectsLocationsConnectClustersConnectorsCreateCall
ConnectorId sets the optional parameter "connectorId": Required. The ID to use for the connector, which will become the final component of the connector's name. The ID must be 1-63 characters long, and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` to comply with RFC 1035. This value is structured like: `my-connector-id`.
func (*ProjectsLocationsConnectClustersConnectorsCreateCall) Context ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsCreateCall) Context(ctx context.Context) *ProjectsLocationsConnectClustersConnectorsCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectClustersConnectorsCreateCall) Do ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsCreateCall) Do(opts ...googleapi.CallOption) (*Connector, error)
Do executes the "managedkafka.projects.locations.connectClusters.connectors.create" call. Any non-2xx status code is an error. Response headers are in either *Connector.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsConnectClustersConnectorsCreateCall) Fields ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectClustersConnectorsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectClustersConnectorsCreateCall) Header ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsConnectClustersConnectorsDeleteCall ¶ added in v0.228.0
type ProjectsLocationsConnectClustersConnectorsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectClustersConnectorsDeleteCall) Context ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsDeleteCall) Context(ctx context.Context) *ProjectsLocationsConnectClustersConnectorsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectClustersConnectorsDeleteCall) Do ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "managedkafka.projects.locations.connectClusters.connectors.delete" call. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsConnectClustersConnectorsDeleteCall) Fields ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectClustersConnectorsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectClustersConnectorsDeleteCall) Header ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsConnectClustersConnectorsGetCall ¶ added in v0.228.0
type ProjectsLocationsConnectClustersConnectorsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectClustersConnectorsGetCall) Context ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsGetCall) Context(ctx context.Context) *ProjectsLocationsConnectClustersConnectorsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectClustersConnectorsGetCall) Do ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsGetCall) Do(opts ...googleapi.CallOption) (*Connector, error)
Do executes the "managedkafka.projects.locations.connectClusters.connectors.get" call. Any non-2xx status code is an error. Response headers are in either *Connector.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsConnectClustersConnectorsGetCall) Fields ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectClustersConnectorsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectClustersConnectorsGetCall) Header ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsConnectClustersConnectorsGetCall) IfNoneMatch ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectClustersConnectorsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsConnectClustersConnectorsListCall ¶ added in v0.228.0
type ProjectsLocationsConnectClustersConnectorsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectClustersConnectorsListCall) Context ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsListCall) Context(ctx context.Context) *ProjectsLocationsConnectClustersConnectorsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectClustersConnectorsListCall) Do ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsListCall) Do(opts ...googleapi.CallOption) (*ListConnectorsResponse, error)
Do executes the "managedkafka.projects.locations.connectClusters.connectors.list" call. Any non-2xx status code is an error. Response headers are in either *ListConnectorsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsConnectClustersConnectorsListCall) Fields ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectClustersConnectorsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectClustersConnectorsListCall) Header ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsConnectClustersConnectorsListCall) IfNoneMatch ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectClustersConnectorsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsConnectClustersConnectorsListCall) PageSize ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsListCall) PageSize(pageSize int64) *ProjectsLocationsConnectClustersConnectorsListCall
PageSize sets the optional parameter "pageSize": The maximum number of connectors to return. The service may return fewer than this value. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsConnectClustersConnectorsListCall) PageToken ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsListCall) PageToken(pageToken string) *ProjectsLocationsConnectClustersConnectorsListCall
PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListConnectors` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListConnectors` must match the call that provided the page token.
func (*ProjectsLocationsConnectClustersConnectorsListCall) Pages ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsListCall) Pages(ctx context.Context, f func(*ListConnectorsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsConnectClustersConnectorsPatchCall ¶ added in v0.228.0
type ProjectsLocationsConnectClustersConnectorsPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectClustersConnectorsPatchCall) Context ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsPatchCall) Context(ctx context.Context) *ProjectsLocationsConnectClustersConnectorsPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectClustersConnectorsPatchCall) Do ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsPatchCall) Do(opts ...googleapi.CallOption) (*Connector, error)
Do executes the "managedkafka.projects.locations.connectClusters.connectors.patch" call. Any non-2xx status code is an error. Response headers are in either *Connector.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsConnectClustersConnectorsPatchCall) Fields ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectClustersConnectorsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectClustersConnectorsPatchCall) Header ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsConnectClustersConnectorsPatchCall) UpdateMask ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConnectClustersConnectorsPatchCall
UpdateMask sets the optional parameter "updateMask": Required. Field mask is used to specify the fields to be overwritten in the cluster resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The mask is required and a value of * will update all fields.
type ProjectsLocationsConnectClustersConnectorsPauseCall ¶ added in v0.228.0
type ProjectsLocationsConnectClustersConnectorsPauseCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectClustersConnectorsPauseCall) Context ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsPauseCall) Context(ctx context.Context) *ProjectsLocationsConnectClustersConnectorsPauseCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectClustersConnectorsPauseCall) Do ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsPauseCall) Do(opts ...googleapi.CallOption) (*PauseConnectorResponse, error)
Do executes the "managedkafka.projects.locations.connectClusters.connectors.pause" call. Any non-2xx status code is an error. Response headers are in either *PauseConnectorResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsConnectClustersConnectorsPauseCall) Fields ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsPauseCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectClustersConnectorsPauseCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectClustersConnectorsPauseCall) Header ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsPauseCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsConnectClustersConnectorsRestartCall ¶ added in v0.228.0
type ProjectsLocationsConnectClustersConnectorsRestartCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectClustersConnectorsRestartCall) Context ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsRestartCall) Context(ctx context.Context) *ProjectsLocationsConnectClustersConnectorsRestartCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectClustersConnectorsRestartCall) Do ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsRestartCall) Do(opts ...googleapi.CallOption) (*RestartConnectorResponse, error)
Do executes the "managedkafka.projects.locations.connectClusters.connectors.restart" call. Any non-2xx status code is an error. Response headers are in either *RestartConnectorResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsConnectClustersConnectorsRestartCall) Fields ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsRestartCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectClustersConnectorsRestartCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectClustersConnectorsRestartCall) Header ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsRestartCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsConnectClustersConnectorsResumeCall ¶ added in v0.228.0
type ProjectsLocationsConnectClustersConnectorsResumeCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectClustersConnectorsResumeCall) Context ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsResumeCall) Context(ctx context.Context) *ProjectsLocationsConnectClustersConnectorsResumeCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectClustersConnectorsResumeCall) Do ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsResumeCall) Do(opts ...googleapi.CallOption) (*ResumeConnectorResponse, error)
Do executes the "managedkafka.projects.locations.connectClusters.connectors.resume" call. Any non-2xx status code is an error. Response headers are in either *ResumeConnectorResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsConnectClustersConnectorsResumeCall) Fields ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsResumeCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectClustersConnectorsResumeCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectClustersConnectorsResumeCall) Header ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsResumeCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsConnectClustersConnectorsService ¶ added in v0.228.0
type ProjectsLocationsConnectClustersConnectorsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsConnectClustersConnectorsService ¶ added in v0.228.0
func NewProjectsLocationsConnectClustersConnectorsService(s *Service) *ProjectsLocationsConnectClustersConnectorsService
func (*ProjectsLocationsConnectClustersConnectorsService) Create ¶ added in v0.228.0
func (r *ProjectsLocationsConnectClustersConnectorsService) Create(parent string, connector *Connector) *ProjectsLocationsConnectClustersConnectorsCreateCall
Create: Creates a new connector in a given Connect cluster.
- parent: The parent Connect cluster in which to create the connector. Structured like `projects/{project}/locations/{location}/connectClusters/{connect_cluster_i d}`.
func (*ProjectsLocationsConnectClustersConnectorsService) Delete ¶ added in v0.228.0
func (r *ProjectsLocationsConnectClustersConnectorsService) Delete(name string) *ProjectsLocationsConnectClustersConnectorsDeleteCall
Delete: Deletes a connector.
- name: The name of the connector to delete. Structured like: projects/{project}/locations/{location}/connectClusters/{connectCluster}/co nnectors/{connector}.
func (*ProjectsLocationsConnectClustersConnectorsService) Get ¶ added in v0.228.0
func (r *ProjectsLocationsConnectClustersConnectorsService) Get(name string) *ProjectsLocationsConnectClustersConnectorsGetCall
Get: Returns the properties of a single connector.
- name: The name of the connector whose configuration to return. Structured like: projects/{project}/locations/{location}/connectClusters/{connectCluster}/co nnectors/{connector}.
func (*ProjectsLocationsConnectClustersConnectorsService) List ¶ added in v0.228.0
func (r *ProjectsLocationsConnectClustersConnectorsService) List(parent string) *ProjectsLocationsConnectClustersConnectorsListCall
List: Lists the connectors in a given Connect cluster.
- parent: The parent Connect cluster whose connectors are to be listed. Structured like `projects/{project}/locations/{location}/connectClusters/{connect_cluster_i d}`.
func (*ProjectsLocationsConnectClustersConnectorsService) Patch ¶ added in v0.228.0
func (r *ProjectsLocationsConnectClustersConnectorsService) Patch(name string, connector *Connector) *ProjectsLocationsConnectClustersConnectorsPatchCall
Patch: Updates the properties of a connector.
- name: Identifier. The name of the connector. Structured like: projects/{project}/locations/{location}/connectClusters/{connect_cluster}/c onnectors/{connector}.
func (*ProjectsLocationsConnectClustersConnectorsService) Pause ¶ added in v0.228.0
func (r *ProjectsLocationsConnectClustersConnectorsService) Pause(name string, pauseconnectorrequest *PauseConnectorRequest) *ProjectsLocationsConnectClustersConnectorsPauseCall
Pause: Pauses the connector and its tasks.
- name: The name of the connector to pause. Structured like: projects/{project}/locations/{location}/connectClusters/{connectCluster}/co nnectors/{connector}.
func (*ProjectsLocationsConnectClustersConnectorsService) Restart ¶ added in v0.228.0
func (r *ProjectsLocationsConnectClustersConnectorsService) Restart(name string, restartconnectorrequest *RestartConnectorRequest) *ProjectsLocationsConnectClustersConnectorsRestartCall
Restart: Restarts the connector.
- name: The name of the connector to restart. Structured like: projects/{project}/locations/{location}/connectClusters/{connectCluster}/co nnectors/{connector}.
func (*ProjectsLocationsConnectClustersConnectorsService) Resume ¶ added in v0.228.0
func (r *ProjectsLocationsConnectClustersConnectorsService) Resume(name string, resumeconnectorrequest *ResumeConnectorRequest) *ProjectsLocationsConnectClustersConnectorsResumeCall
Resume: Resumes the connector and its tasks.
- name: The name of the connector to pause. Structured like: projects/{project}/locations/{location}/connectClusters/{connectCluster}/co nnectors/{connector}.
func (*ProjectsLocationsConnectClustersConnectorsService) Stop ¶ added in v0.228.0
func (r *ProjectsLocationsConnectClustersConnectorsService) Stop(name string, stopconnectorrequest *StopConnectorRequest) *ProjectsLocationsConnectClustersConnectorsStopCall
Stop: Stops the connector.
- name: The name of the connector to stop. Structured like: projects/{project}/locations/{location}/connectClusters/{connectCluster}/co nnectors/{connector}.
type ProjectsLocationsConnectClustersConnectorsStopCall ¶ added in v0.228.0
type ProjectsLocationsConnectClustersConnectorsStopCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectClustersConnectorsStopCall) Context ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsStopCall) Context(ctx context.Context) *ProjectsLocationsConnectClustersConnectorsStopCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectClustersConnectorsStopCall) Do ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsStopCall) Do(opts ...googleapi.CallOption) (*StopConnectorResponse, error)
Do executes the "managedkafka.projects.locations.connectClusters.connectors.stop" call. Any non-2xx status code is an error. Response headers are in either *StopConnectorResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsConnectClustersConnectorsStopCall) Fields ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsStopCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectClustersConnectorsStopCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectClustersConnectorsStopCall) Header ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersConnectorsStopCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsConnectClustersCreateCall ¶ added in v0.228.0
type ProjectsLocationsConnectClustersCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectClustersCreateCall) ConnectClusterId ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersCreateCall) ConnectClusterId(connectClusterId string) *ProjectsLocationsConnectClustersCreateCall
ConnectClusterId sets the optional parameter "connectClusterId": Required. The ID to use for the Connect cluster, which will become the final component of the cluster's name. The ID must be 1-63 characters long, and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` to comply with RFC 1035. This value is structured like: `my-cluster-id`.
func (*ProjectsLocationsConnectClustersCreateCall) Context ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersCreateCall) Context(ctx context.Context) *ProjectsLocationsConnectClustersCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectClustersCreateCall) Do ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "managedkafka.projects.locations.connectClusters.create" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsConnectClustersCreateCall) Fields ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectClustersCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectClustersCreateCall) Header ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsConnectClustersCreateCall) RequestId ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersCreateCall) RequestId(requestId string) *ProjectsLocationsConnectClustersCreateCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID to avoid duplication of requests. If a request times out or fails, retrying with the same ID allows the server to recognize the previous attempt. For at least 60 minutes, the server ignores duplicate requests bearing the same ID. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID within 60 minutes of the last request, the server checks if an original operation with the same request ID was received. If so, the server ignores the second request. The request ID must be a valid UUID. A zero UUID is not supported (00000000-0000-0000-0000-000000000000).
type ProjectsLocationsConnectClustersDeleteCall ¶ added in v0.228.0
type ProjectsLocationsConnectClustersDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectClustersDeleteCall) Context ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersDeleteCall) Context(ctx context.Context) *ProjectsLocationsConnectClustersDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectClustersDeleteCall) Do ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "managedkafka.projects.locations.connectClusters.delete" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsConnectClustersDeleteCall) Fields ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectClustersDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectClustersDeleteCall) Header ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsConnectClustersDeleteCall) RequestId ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersDeleteCall) RequestId(requestId string) *ProjectsLocationsConnectClustersDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID to avoid duplication of requests. If a request times out or fails, retrying with the same ID allows the server to recognize the previous attempt. For at least 60 minutes, the server ignores duplicate requests bearing the same ID. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID within 60 minutes of the last request, the server checks if an original operation with the same request ID was received. If so, the server ignores the second request. The request ID must be a valid UUID. A zero UUID is not supported (00000000-0000-0000-0000-000000000000).
type ProjectsLocationsConnectClustersGetCall ¶ added in v0.228.0
type ProjectsLocationsConnectClustersGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectClustersGetCall) Context ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersGetCall) Context(ctx context.Context) *ProjectsLocationsConnectClustersGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectClustersGetCall) Do ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersGetCall) Do(opts ...googleapi.CallOption) (*ConnectCluster, error)
Do executes the "managedkafka.projects.locations.connectClusters.get" call. Any non-2xx status code is an error. Response headers are in either *ConnectCluster.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsConnectClustersGetCall) Fields ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectClustersGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectClustersGetCall) Header ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsConnectClustersGetCall) IfNoneMatch ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectClustersGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsConnectClustersListCall ¶ added in v0.228.0
type ProjectsLocationsConnectClustersListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectClustersListCall) Context ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersListCall) Context(ctx context.Context) *ProjectsLocationsConnectClustersListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectClustersListCall) Do ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersListCall) Do(opts ...googleapi.CallOption) (*ListConnectClustersResponse, error)
Do executes the "managedkafka.projects.locations.connectClusters.list" call. Any non-2xx status code is an error. Response headers are in either *ListConnectClustersResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsConnectClustersListCall) Fields ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectClustersListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectClustersListCall) Filter ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersListCall) Filter(filter string) *ProjectsLocationsConnectClustersListCall
Filter sets the optional parameter "filter": Filter expression for the result.
func (*ProjectsLocationsConnectClustersListCall) Header ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsConnectClustersListCall) IfNoneMatch ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectClustersListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsConnectClustersListCall) OrderBy ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersListCall) OrderBy(orderBy string) *ProjectsLocationsConnectClustersListCall
OrderBy sets the optional parameter "orderBy": Order by fields for the result.
func (*ProjectsLocationsConnectClustersListCall) PageSize ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersListCall) PageSize(pageSize int64) *ProjectsLocationsConnectClustersListCall
PageSize sets the optional parameter "pageSize": The maximum number of Connect clusters to return. The service may return fewer than this value. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsConnectClustersListCall) PageToken ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersListCall) PageToken(pageToken string) *ProjectsLocationsConnectClustersListCall
PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListConnectClusters` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListConnectClusters` must match the call that provided the page token.
func (*ProjectsLocationsConnectClustersListCall) Pages ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersListCall) Pages(ctx context.Context, f func(*ListConnectClustersResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsConnectClustersPatchCall ¶ added in v0.228.0
type ProjectsLocationsConnectClustersPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectClustersPatchCall) Context ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersPatchCall) Context(ctx context.Context) *ProjectsLocationsConnectClustersPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectClustersPatchCall) Do ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "managedkafka.projects.locations.connectClusters.patch" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsConnectClustersPatchCall) Fields ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectClustersPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectClustersPatchCall) Header ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsConnectClustersPatchCall) RequestId ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersPatchCall) RequestId(requestId string) *ProjectsLocationsConnectClustersPatchCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID to avoid duplication of requests. If a request times out or fails, retrying with the same ID allows the server to recognize the previous attempt. For at least 60 minutes, the server ignores duplicate requests bearing the same ID. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID within 60 minutes of the last request, the server checks if an original operation with the same request ID was received. If so, the server ignores the second request. The request ID must be a valid UUID. A zero UUID is not supported (00000000-0000-0000-0000-000000000000).
func (*ProjectsLocationsConnectClustersPatchCall) UpdateMask ¶ added in v0.228.0
func (c *ProjectsLocationsConnectClustersPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConnectClustersPatchCall
UpdateMask sets the optional parameter "updateMask": Required. Field mask is used to specify the fields to be overwritten in the cluster resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The mask is required and a value of * will update all fields.
type ProjectsLocationsConnectClustersService ¶ added in v0.228.0
type ProjectsLocationsConnectClustersService struct { Connectors *ProjectsLocationsConnectClustersConnectorsService // contains filtered or unexported fields }
func NewProjectsLocationsConnectClustersService ¶ added in v0.228.0
func NewProjectsLocationsConnectClustersService(s *Service) *ProjectsLocationsConnectClustersService
func (*ProjectsLocationsConnectClustersService) Create ¶ added in v0.228.0
func (r *ProjectsLocationsConnectClustersService) Create(parent string, connectcluster *ConnectCluster) *ProjectsLocationsConnectClustersCreateCall
Create: Creates a new Kafka Connect cluster in a given project and location.
- parent: The parent project/location in which to create the Kafka Connect cluster. Structured like `projects/{project}/locations/{location}/`.
func (*ProjectsLocationsConnectClustersService) Delete ¶ added in v0.228.0
func (r *ProjectsLocationsConnectClustersService) Delete(name string) *ProjectsLocationsConnectClustersDeleteCall
Delete: Deletes a single Connect cluster.
- name: The name of the Kafka Connect cluster to delete. Structured like `projects/{project}/locations/{location}/connectClusters/{connect_cluster_i d}`.
func (*ProjectsLocationsConnectClustersService) Get ¶ added in v0.228.0
func (r *ProjectsLocationsConnectClustersService) Get(name string) *ProjectsLocationsConnectClustersGetCall
Get: Returns the properties of a single Kafka Connect cluster.
- name: The name of the Kafka Connect cluster whose configuration to return. Structured like `projects/{project}/locations/{location}/connectClusters/{connect_cluster_i d}`.
func (*ProjectsLocationsConnectClustersService) List ¶ added in v0.228.0
func (r *ProjectsLocationsConnectClustersService) List(parent string) *ProjectsLocationsConnectClustersListCall
List: Lists the Kafka Connect clusters in a given project and location.
- parent: The parent project/location whose Connect clusters are to be listed. Structured like `projects/{project}/locations/{location}`.
func (*ProjectsLocationsConnectClustersService) Patch ¶ added in v0.228.0
func (r *ProjectsLocationsConnectClustersService) Patch(name string, connectcluster *ConnectCluster) *ProjectsLocationsConnectClustersPatchCall
Patch: Updates the properties of a single Kafka Connect cluster.
- name: Identifier. The name of the Kafka Connect cluster. Structured like: projects/{project_number}/locations/{location}/connectClusters/{connect_clu ster_id}.
type ProjectsLocationsGetCall ¶
type ProjectsLocationsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsGetCall) Context ¶
func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsGetCall) Do ¶
func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error)
Do executes the "managedkafka.projects.locations.get" call. Any non-2xx status code is an error. Response headers are in either *Location.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsGetCall) Fields ¶
func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsGetCall) Header ¶
func (c *ProjectsLocationsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsListCall ¶
type ProjectsLocationsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsListCall) Context ¶
func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsListCall) Do ¶
func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error)
Do executes the "managedkafka.projects.locations.list" call. Any non-2xx status code is an error. Response headers are in either *ListLocationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsListCall) ExtraLocationTypes ¶ added in v0.229.0
func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall
ExtraLocationTypes sets the optional parameter "extraLocationTypes": A list of extra location types that should be used as conditions for controlling the visibility of the locations.
func (*ProjectsLocationsListCall) Fields ¶
func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsListCall) Filter ¶
func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall
Filter sets the optional parameter "filter": A filter to narrow down results to a preferred subset. The filtering language accepts strings like "displayName=tokyo", and is documented in more detail in AIP-160 (https://google.aip.dev/160).
func (*ProjectsLocationsListCall) Header ¶
func (c *ProjectsLocationsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsListCall) PageSize ¶
func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall
PageSize sets the optional parameter "pageSize": The maximum number of results to return. If not set, the service selects a default.
func (*ProjectsLocationsListCall) PageToken ¶
func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall
PageToken sets the optional parameter "pageToken": A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
func (*ProjectsLocationsListCall) Pages ¶
func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsOperationsCancelCall ¶
type ProjectsLocationsOperationsCancelCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsCancelCall) Context ¶
func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsCancelCall) Do ¶
func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "managedkafka.projects.locations.operations.cancel" call. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsCancelCall) Fields ¶
func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsOperationsCancelCall) Header ¶
func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsOperationsDeleteCall ¶
type ProjectsLocationsOperationsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsDeleteCall) Context ¶
func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsDeleteCall) Do ¶
func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "managedkafka.projects.locations.operations.delete" call. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsDeleteCall) Fields ¶
func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsOperationsDeleteCall) Header ¶
func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsOperationsGetCall ¶
type ProjectsLocationsOperationsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsGetCall) Context ¶
func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsGetCall) Do ¶
func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "managedkafka.projects.locations.operations.get" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsGetCall) Fields ¶
func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsOperationsGetCall) Header ¶
func (c *ProjectsLocationsOperationsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsOperationsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsOperationsListCall ¶
type ProjectsLocationsOperationsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsListCall) Context ¶
func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsListCall) Do ¶
func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)
Do executes the "managedkafka.projects.locations.operations.list" call. Any non-2xx status code is an error. Response headers are in either *ListOperationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsListCall) Fields ¶
func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsOperationsListCall) Filter ¶
func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall
Filter sets the optional parameter "filter": The standard list filter.
func (*ProjectsLocationsOperationsListCall) Header ¶
func (c *ProjectsLocationsOperationsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsOperationsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsOperationsListCall) PageSize ¶
func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall
PageSize sets the optional parameter "pageSize": The standard list page size.
func (*ProjectsLocationsOperationsListCall) PageToken ¶
func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall
PageToken sets the optional parameter "pageToken": The standard list page token.
func (*ProjectsLocationsOperationsListCall) Pages ¶
func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsOperationsService ¶
type ProjectsLocationsOperationsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsOperationsService ¶
func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService
func (*ProjectsLocationsOperationsService) Cancel ¶
func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall
Cancel: Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
- name: The name of the operation resource to be cancelled.
func (*ProjectsLocationsOperationsService) Delete ¶
func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall
Delete: Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
- name: The name of the operation resource to be deleted.
func (*ProjectsLocationsOperationsService) Get ¶
func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall
Get: Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
- name: The name of the operation resource.
func (*ProjectsLocationsOperationsService) List ¶
func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall
List: Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
- name: The name of the operation's parent resource.
type ProjectsLocationsService ¶
type ProjectsLocationsService struct { Clusters *ProjectsLocationsClustersService ConnectClusters *ProjectsLocationsConnectClustersService Operations *ProjectsLocationsOperationsService // contains filtered or unexported fields }
func NewProjectsLocationsService ¶
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService
func (*ProjectsLocationsService) Get ¶
func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall
Get: Gets information about a location.
- name: Resource name for the location.
func (*ProjectsLocationsService) List ¶
func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall
List: Lists information about the supported locations for this service.
- name: The resource that owns the locations collection, if applicable.
type ProjectsService ¶
type ProjectsService struct { Locations *ProjectsLocationsService // contains filtered or unexported fields }
func NewProjectsService ¶
func NewProjectsService(s *Service) *ProjectsService
type RebalanceConfig ¶
type RebalanceConfig struct { // Mode: Optional. The rebalance behavior for the cluster. When not specified, // defaults to `NO_REBALANCE`. // // Possible values: // "MODE_UNSPECIFIED" - A mode was not specified. Do not use. // "NO_REBALANCE" - Do not rebalance automatically. // "AUTO_REBALANCE_ON_SCALE_UP" - Automatically rebalance topic partitions // among brokers when the cluster is scaled up. Mode string `json:"mode,omitempty"` // ForceSendFields is a list of field names (e.g. "Mode") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Mode") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
RebalanceConfig: Defines rebalancing behavior of a Kafka cluster.
func (RebalanceConfig) MarshalJSON ¶
func (s RebalanceConfig) MarshalJSON() ([]byte, error)
type RemoveAclEntryResponse ¶ added in v0.230.0
type RemoveAclEntryResponse struct { // Acl: The updated acl. Returned if the removed acl entry was not the last // entry in the acl. Acl *Acl `json:"acl,omitempty"` // AclDeleted: Returned with value true if the removed acl entry was the last // entry in the acl, resulting in acl deletion. AclDeleted bool `json:"aclDeleted,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Acl") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Acl") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
RemoveAclEntryResponse: Response for RemoveAclEntry.
func (RemoveAclEntryResponse) MarshalJSON ¶ added in v0.230.0
func (s RemoveAclEntryResponse) MarshalJSON() ([]byte, error)
type RestartConnectorRequest ¶ added in v0.228.0
type RestartConnectorRequest struct { }
RestartConnectorRequest: Request for RestartConnector.
type RestartConnectorResponse ¶ added in v0.228.0
type RestartConnectorResponse struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` }
RestartConnectorResponse: Response for RestartConnector.
type ResumeConnectorRequest ¶ added in v0.228.0
type ResumeConnectorRequest struct { }
ResumeConnectorRequest: Request for ResumeConnector.
type ResumeConnectorResponse ¶ added in v0.228.0
type ResumeConnectorResponse struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` }
ResumeConnectorResponse: Response for ResumeConnector.
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Projects *ProjectsService // contains filtered or unexported fields }
func New
deprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
func NewService ¶
NewService creates a new Service.
type Status ¶
type Status struct { // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` // Details: A list of messages that carry the error details. There is a common // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` // Message: A developer-facing error message, which should be in English. Any // user-facing error message should be localized and sent in the // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Code") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Status: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors).
func (Status) MarshalJSON ¶
type StopConnectorRequest ¶ added in v0.228.0
type StopConnectorRequest struct { }
StopConnectorRequest: Request for StopConnector.
type StopConnectorResponse ¶ added in v0.228.0
type StopConnectorResponse struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` }
StopConnectorResponse: Response for StopConnector.
type TaskRetryPolicy ¶ added in v0.228.0
type TaskRetryPolicy struct { // MaximumBackoff: Optional. The maximum amount of time to wait before retrying // a failed task. This sets an upper bound for the backoff delay. MaximumBackoff string `json:"maximumBackoff,omitempty"` // MinimumBackoff: Optional. The minimum amount of time to wait before retrying // a failed task. This sets a lower bound for the backoff delay. MinimumBackoff string `json:"minimumBackoff,omitempty"` // ForceSendFields is a list of field names (e.g. "MaximumBackoff") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "MaximumBackoff") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
TaskRetryPolicy: Task Retry Policy is implemented on a best-effort basis. Retry delay will be exponential based on provided minimum and maximum backoffs. https://en.wikipedia.org/wiki/Exponential_backoff. Note that the delay between consecutive task restarts may not always precisely match the configured settings. This can happen when the ConnectCluster is in rebalancing state or if the ConnectCluster is unresponsive etc. The default values for minimum and maximum backoffs are 60 seconds and 30 minutes respectively.
func (TaskRetryPolicy) MarshalJSON ¶ added in v0.228.0
func (s TaskRetryPolicy) MarshalJSON() ([]byte, error)
type Topic ¶
type Topic struct { // Configs: Optional. Configurations for the topic that are overridden from the // cluster defaults. The key of the map is a Kafka topic property name, for // example: `cleanup.policy`, `compression.type`. Configs map[string]string `json:"configs,omitempty"` // Name: Identifier. The name of the topic. The `topic` segment is used when // connecting directly to the cluster. Structured like: // projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic} Name string `json:"name,omitempty"` // PartitionCount: Required. The number of partitions this topic has. The // partition count can only be increased, not decreased. Please note that if // partitions are increased for a topic that has a key, the partitioning logic // or the ordering of the messages will be affected. PartitionCount int64 `json:"partitionCount,omitempty"` // ReplicationFactor: Required. Immutable. The number of replicas of each // partition. A replication factor of 3 is recommended for high availability. ReplicationFactor int64 `json:"replicationFactor,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Configs") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Configs") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Topic: A Kafka topic in a given cluster.