Documentation ¶
Overview ¶
Package connectors provides access to the Connectors API.
For product documentation, see: https://cloud.google.com/apigee/docs/api-platform/connectors/about-connectors
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/connectors/v2" ... ctx := context.Background() connectorsService, err := connectors.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:
connectorsService, err := connectors.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, ...) connectorsService, err := connectors.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See google.golang.org/api/option.ClientOption for details on options.
Index ¶
- Constants
- type Action
- type Empty
- type Entity
- type EntityType
- type ExecuteActionRequest
- type ExecuteActionResponse
- type ExecuteSqlQueryRequest
- type ExecuteSqlQueryResponse
- type Field
- type InputParameter
- type JsonSchema
- type ListActionsResponse
- type ListEntitiesResponse
- type ListEntityTypesResponse
- type ProjectsLocationsConnectionsActionsExecuteCall
- func (c *ProjectsLocationsConnectionsActionsExecuteCall) Context(ctx context.Context) *ProjectsLocationsConnectionsActionsExecuteCall
- func (c *ProjectsLocationsConnectionsActionsExecuteCall) Do(opts ...googleapi.CallOption) (*ExecuteActionResponse, error)
- func (c *ProjectsLocationsConnectionsActionsExecuteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsActionsExecuteCall
- func (c *ProjectsLocationsConnectionsActionsExecuteCall) Header() http.Header
- type ProjectsLocationsConnectionsActionsGetCall
- func (c *ProjectsLocationsConnectionsActionsGetCall) Context(ctx context.Context) *ProjectsLocationsConnectionsActionsGetCall
- func (c *ProjectsLocationsConnectionsActionsGetCall) Do(opts ...googleapi.CallOption) (*Action, error)
- func (c *ProjectsLocationsConnectionsActionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsActionsGetCall
- func (c *ProjectsLocationsConnectionsActionsGetCall) Header() http.Header
- func (c *ProjectsLocationsConnectionsActionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsActionsGetCall
- type ProjectsLocationsConnectionsActionsListCall
- func (c *ProjectsLocationsConnectionsActionsListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsActionsListCall
- func (c *ProjectsLocationsConnectionsActionsListCall) Do(opts ...googleapi.CallOption) (*ListActionsResponse, error)
- func (c *ProjectsLocationsConnectionsActionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsActionsListCall
- func (c *ProjectsLocationsConnectionsActionsListCall) Header() http.Header
- func (c *ProjectsLocationsConnectionsActionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsActionsListCall
- func (c *ProjectsLocationsConnectionsActionsListCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsActionsListCall
- func (c *ProjectsLocationsConnectionsActionsListCall) PageToken(pageToken string) *ProjectsLocationsConnectionsActionsListCall
- func (c *ProjectsLocationsConnectionsActionsListCall) Pages(ctx context.Context, f func(*ListActionsResponse) error) error
- func (c *ProjectsLocationsConnectionsActionsListCall) View(view string) *ProjectsLocationsConnectionsActionsListCall
- type ProjectsLocationsConnectionsActionsService
- func (r *ProjectsLocationsConnectionsActionsService) Execute(name string, executeactionrequest *ExecuteActionRequest) *ProjectsLocationsConnectionsActionsExecuteCall
- func (r *ProjectsLocationsConnectionsActionsService) Get(name string) *ProjectsLocationsConnectionsActionsGetCall
- func (r *ProjectsLocationsConnectionsActionsService) List(parent string) *ProjectsLocationsConnectionsActionsListCall
- type ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall) Do(opts ...googleapi.CallOption) (*Entity, error)
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall) Header() http.Header
- type ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall) Header() http.Header
- type ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall) Conditions(conditions string) ...
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall) Context(ctx context.Context) ...
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall) Fields(s ...googleapi.Field) ...
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall) Header() http.Header
- type ProjectsLocationsConnectionsEntityTypesEntitiesGetCall
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesGetCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEntityTypesEntitiesGetCall
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesGetCall) Do(opts ...googleapi.CallOption) (*Entity, error)
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEntityTypesEntitiesGetCall
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesGetCall) Header() http.Header
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsEntityTypesEntitiesGetCall
- type ProjectsLocationsConnectionsEntityTypesEntitiesListCall
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) Conditions(conditions string) *ProjectsLocationsConnectionsEntityTypesEntitiesListCall
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEntityTypesEntitiesListCall
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) Do(opts ...googleapi.CallOption) (*ListEntitiesResponse, error)
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEntityTypesEntitiesListCall
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) Header() http.Header
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsEntityTypesEntitiesListCall
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsEntityTypesEntitiesListCall
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) PageToken(pageToken string) *ProjectsLocationsConnectionsEntityTypesEntitiesListCall
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) Pages(ctx context.Context, f func(*ListEntitiesResponse) error) error
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) SortBy(sortBy ...string) *ProjectsLocationsConnectionsEntityTypesEntitiesListCall
- type ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall) Do(opts ...googleapi.CallOption) (*Entity, error)
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall) Header() http.Header
- type ProjectsLocationsConnectionsEntityTypesEntitiesService
- func (r *ProjectsLocationsConnectionsEntityTypesEntitiesService) Create(parent string, entity *Entity) *ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall
- func (r *ProjectsLocationsConnectionsEntityTypesEntitiesService) Delete(name string) *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall
- func (r *ProjectsLocationsConnectionsEntityTypesEntitiesService) DeleteEntitiesWithConditions(entityType string) ...
- func (r *ProjectsLocationsConnectionsEntityTypesEntitiesService) Get(name string) *ProjectsLocationsConnectionsEntityTypesEntitiesGetCall
- func (r *ProjectsLocationsConnectionsEntityTypesEntitiesService) List(parent string) *ProjectsLocationsConnectionsEntityTypesEntitiesListCall
- func (r *ProjectsLocationsConnectionsEntityTypesEntitiesService) Patch(name string, entity *Entity) *ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall
- func (r *ProjectsLocationsConnectionsEntityTypesEntitiesService) UpdateEntitiesWithConditions(entityType string, entity *Entity) ...
- type ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall) Conditions(conditions string) ...
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall) Context(ctx context.Context) ...
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall) Do(opts ...googleapi.CallOption) (*UpdateEntitiesWithConditionsResponse, error)
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall) Fields(s ...googleapi.Field) ...
- func (c *ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall) Header() http.Header
- type ProjectsLocationsConnectionsEntityTypesGetCall
- func (c *ProjectsLocationsConnectionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEntityTypesGetCall
- func (c *ProjectsLocationsConnectionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*EntityType, error)
- func (c *ProjectsLocationsConnectionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEntityTypesGetCall
- func (c *ProjectsLocationsConnectionsEntityTypesGetCall) Header() http.Header
- func (c *ProjectsLocationsConnectionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsEntityTypesGetCall
- type ProjectsLocationsConnectionsEntityTypesListCall
- func (c *ProjectsLocationsConnectionsEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEntityTypesListCall
- func (c *ProjectsLocationsConnectionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*ListEntityTypesResponse, error)
- func (c *ProjectsLocationsConnectionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEntityTypesListCall
- func (c *ProjectsLocationsConnectionsEntityTypesListCall) Header() http.Header
- func (c *ProjectsLocationsConnectionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsEntityTypesListCall
- func (c *ProjectsLocationsConnectionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsEntityTypesListCall
- func (c *ProjectsLocationsConnectionsEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsConnectionsEntityTypesListCall
- func (c *ProjectsLocationsConnectionsEntityTypesListCall) Pages(ctx context.Context, f func(*ListEntityTypesResponse) error) error
- func (c *ProjectsLocationsConnectionsEntityTypesListCall) View(view string) *ProjectsLocationsConnectionsEntityTypesListCall
- type ProjectsLocationsConnectionsEntityTypesService
- type ProjectsLocationsConnectionsExecuteSqlQueryCall
- func (c *ProjectsLocationsConnectionsExecuteSqlQueryCall) Context(ctx context.Context) *ProjectsLocationsConnectionsExecuteSqlQueryCall
- func (c *ProjectsLocationsConnectionsExecuteSqlQueryCall) Do(opts ...googleapi.CallOption) (*ExecuteSqlQueryResponse, error)
- func (c *ProjectsLocationsConnectionsExecuteSqlQueryCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsExecuteSqlQueryCall
- func (c *ProjectsLocationsConnectionsExecuteSqlQueryCall) Header() http.Header
- type ProjectsLocationsConnectionsService
- type ProjectsLocationsService
- type ProjectsService
- type Query
- type QueryParameter
- type Reference
- type ResultMetadata
- type Service
- type UpdateEntitiesWithConditionsResponse
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 Action ¶
type Action struct { // Description: Brief Description of action Description string `json:"description,omitempty"` // DisplayName: Display Name of action to be shown on client side DisplayName string `json:"displayName,omitempty"` // InputJsonSchema: JsonSchema representation of this actions's input // schema InputJsonSchema *JsonSchema `json:"inputJsonSchema,omitempty"` // InputParameters: List containing input parameter metadata. InputParameters []*InputParameter `json:"inputParameters,omitempty"` // Name: Name of the action. Name string `json:"name,omitempty"` // ResultJsonSchema: JsonSchema representation of this actions's result // schema ResultJsonSchema *JsonSchema `json:"resultJsonSchema,omitempty"` // ResultMetadata: List containing the metadata of result fields. ResultMetadata []*ResultMetadata `json:"resultMetadata,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Description") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Action: Action message contains metadata information about a single action present in the external system.
func (*Action) MarshalJSON ¶
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 Entity ¶
type Entity struct { // Fields: Fields of the entity. The key is name of the field and the // value contains the applicable `google.protobuf.Value` entry for this // field. Fields googleapi.RawMessage `json:"fields,omitempty"` // Name: Output only. Resource name of the Entity. Format: // projects/{project}/locations/{location}/connections/{connection}/entit // yTypes/{type}/entities/{id} 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. "Fields") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Fields") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Entity: 'Entity row'/ 'Entity' refers to a single row of an entity type.
func (*Entity) MarshalJSON ¶
type EntityType ¶
type EntityType struct { // Fields: List containing metadata information about each field of the // entity type. Fields []*Field `json:"fields,omitempty"` // JsonSchema: JsonSchema representation of this entity's schema JsonSchema *JsonSchema `json:"jsonSchema,omitempty"` // Name: The name of the entity type. 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. "Fields") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Fields") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
EntityType: EntityType message contains metadata information about a single entity type present in the external system.
func (*EntityType) MarshalJSON ¶
func (s *EntityType) MarshalJSON() ([]byte, error)
type ExecuteActionRequest ¶
type ExecuteActionRequest struct { // Parameters: Parameters for executing the action. The parameters can // be key/value pairs or nested structs. Parameters googleapi.RawMessage `json:"parameters,omitempty"` // ForceSendFields is a list of field names (e.g. "Parameters") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Parameters") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ExecuteActionRequest: Request message for ActionService.ExecuteAction
func (*ExecuteActionRequest) MarshalJSON ¶
func (s *ExecuteActionRequest) MarshalJSON() ([]byte, error)
type ExecuteActionResponse ¶
type ExecuteActionResponse struct { // Results: In the case of successful invocation of the specified // action, the results Struct contains values based on the response of // the action invoked. 1. If the action execution produces any entities // as a result, they are returned as an array of Structs with the 'key' // being the field name and the 'value' being the value of that field in // each result row. { 'results': [{'key': 'value'}, ...] } Results []googleapi.RawMessage `json:"results,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Results") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Results") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ExecuteActionResponse: Response message for ActionService.ExecuteAction
func (*ExecuteActionResponse) MarshalJSON ¶
func (s *ExecuteActionResponse) MarshalJSON() ([]byte, error)
type ExecuteSqlQueryRequest ¶
type ExecuteSqlQueryRequest struct { // Query: Required. SQL statement passed by clients like Integration // Platform, the query is passed as-is to the driver used for // interfacing with external systems. Query *Query `json:"query,omitempty"` // ForceSendFields is a list of field names (e.g. "Query") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Query") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ExecuteSqlQueryRequest: An execute sql query request containing the query and the connection to execute it on.
func (*ExecuteSqlQueryRequest) MarshalJSON ¶
func (s *ExecuteSqlQueryRequest) MarshalJSON() ([]byte, error)
type ExecuteSqlQueryResponse ¶
type ExecuteSqlQueryResponse struct { // Results: In the case of successful execution of the query the // response contains results returned by the external system. For // example, the result rows of the query are contained in the 'results' // Struct list - "results": [ { "field1": "val1", "field2": "val2",.. // },.. ] Each Struct row can contain fields any type of like nested // Structs or lists. Results []googleapi.RawMessage `json:"results,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Results") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Results") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ExecuteSqlQueryResponse: A response returned by the connection after executing the sql query.
func (*ExecuteSqlQueryResponse) MarshalJSON ¶
func (s *ExecuteSqlQueryResponse) MarshalJSON() ([]byte, error)
type Field ¶
type Field struct { // AdditionalDetails: The following map contains fields that are not // explicitly mentioned above,this give connectors the flexibility to // add new metadata fields. AdditionalDetails googleapi.RawMessage `json:"additionalDetails,omitempty"` // DataType: The data type of the Field. // // Possible values: // "DATA_TYPE_UNSPECIFIED" - Datatype unspecified. // "INT" - Deprecated Int type, use INTEGER type instead. // "SMALLINT" - Small int type. // "DOUBLE" - Double type. // "DATE" - Date type. // "DATETIME" - Deprecated Datetime type. // "TIME" - Time type. // "STRING" - Deprecated string type, use VARCHAR type instead. // "LONG" - Deprecated Long type, use BIGINT type instead. // "BOOLEAN" - Boolean type. // "DECIMAL" - Decimal type. // "UUID" - Deprecated UUID type, use VARCHAR instead. // "BLOB" - Blob type. // "BIT" - Bit type. // "TINYINT" - Tiny int type. // "INTEGER" - Integer type. // "BIGINT" - Big int type. // "FLOAT" - Float type. // "REAL" - Real type. // "NUMERIC" - Numeric type. // "CHAR" - Char type. // "VARCHAR" - Varchar type. // "LONGVARCHAR" - Long varchar type. // "TIMESTAMP" - Timestamp type. // "NCHAR" - Nchar type. // "NVARCHAR" - Nvarchar type. // "LONGNVARCHAR" - Long Nvarchar type. // "NULL" - Null type. // "OTHER" - Other type. // "JAVA_OBJECT" - Java object type. // "DISTINCT" - Distinct type keyword. // "STRUCT" - Struct type. // "ARRAY" - Array type. // "CLOB" - Clob type. // "REF" - Ref type. // "DATALINK" - Datalink type. // "ROWID" - Row ID type. // "BINARY" - Binary type. // "VARBINARY" - Varbinary type. // "LONGVARBINARY" - Long Varbinary type. // "NCLOB" - Nclob type. // "SQLXML" - SQLXML type. // "REF_CURSOR" - Ref_cursor type. // "TIME_WITH_TIMEZONE" - Time with timezone type. // "TIMESTAMP_WITH_TIMEZONE" - Timestamp with timezone type. DataType string `json:"dataType,omitempty"` // DefaultValue: The following field specifies the default value of the // Field provided by the external system if a value is not provided. DefaultValue interface{} `json:"defaultValue,omitempty"` // Description: A brief description of the Field. Description string `json:"description,omitempty"` // JsonSchema: JsonSchema of the field, applicable only if field is of // type `STRUCT` JsonSchema *JsonSchema `json:"jsonSchema,omitempty"` // Key: The following boolean field specifies if the current Field acts // as a primary key or id if the parent is of type entity. Key bool `json:"key,omitempty"` // Name: Name of the Field. Name string `json:"name,omitempty"` // Nullable: Specifies whether a null value is allowed. Nullable bool `json:"nullable,omitempty"` // Reference: Reference captures the association between two different // entity types. Value links to the reference of another entity type. Reference *Reference `json:"reference,omitempty"` // ForceSendFields is a list of field names (e.g. "AdditionalDetails") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AdditionalDetails") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
Field: Message contains EntityType's Field metadata.
func (*Field) MarshalJSON ¶
type InputParameter ¶
type InputParameter struct { // AdditionalDetails: The following map contains fields that are not // explicitly mentioned above,this give connectors the flexibility to // add new metadata fields. AdditionalDetails googleapi.RawMessage `json:"additionalDetails,omitempty"` // DataType: The data type of the Parameter // // Possible values: // "DATA_TYPE_UNSPECIFIED" - Datatype unspecified. // "INT" - Deprecated Int type, use INTEGER type instead. // "SMALLINT" - Small int type. // "DOUBLE" - Double type. // "DATE" - Date type. // "DATETIME" - Deprecated Datetime type. // "TIME" - Time type. // "STRING" - Deprecated string type, use VARCHAR type instead. // "LONG" - Deprecated Long type, use BIGINT type instead. // "BOOLEAN" - Boolean type. // "DECIMAL" - Decimal type. // "UUID" - Deprecated UUID type, use VARCHAR instead. // "BLOB" - Blob type. // "BIT" - Bit type. // "TINYINT" - Tiny int type. // "INTEGER" - Integer type. // "BIGINT" - Big int type. // "FLOAT" - Float type. // "REAL" - Real type. // "NUMERIC" - Numeric type. // "CHAR" - Char type. // "VARCHAR" - Varchar type. // "LONGVARCHAR" - Long varchar type. // "TIMESTAMP" - Timestamp type. // "NCHAR" - Nchar type. // "NVARCHAR" - Nvarchar type. // "LONGNVARCHAR" - Long Nvarchar type. // "NULL" - Null type. // "OTHER" - Other type. // "JAVA_OBJECT" - Java object type. // "DISTINCT" - Distinct type keyword. // "STRUCT" - Struct type. // "ARRAY" - Array type. // "CLOB" - Clob type. // "REF" - Ref type. // "DATALINK" - Datalink type. // "ROWID" - Row ID type. // "BINARY" - Binary type. // "VARBINARY" - Varbinary type. // "LONGVARBINARY" - Long Varbinary type. // "NCLOB" - Nclob type. // "SQLXML" - SQLXML type. // "REF_CURSOR" - Ref_cursor type. // "TIME_WITH_TIMEZONE" - Time with timezone type. // "TIMESTAMP_WITH_TIMEZONE" - Timestamp with timezone type. DataType string `json:"dataType,omitempty"` // DefaultValue: The following field specifies the default value of the // Parameter provided by the external system if a value is not provided. DefaultValue interface{} `json:"defaultValue,omitempty"` // Description: A brief description of the Parameter. Description string `json:"description,omitempty"` // JsonSchema: JsonSchema of the parameter, applicable only if parameter // is of type `STRUCT` JsonSchema *JsonSchema `json:"jsonSchema,omitempty"` // Name: Name of the Parameter. Name string `json:"name,omitempty"` // Nullable: Specifies whether a null value is allowed. Nullable bool `json:"nullable,omitempty"` // ForceSendFields is a list of field names (e.g. "AdditionalDetails") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AdditionalDetails") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
InputParameter: Input Parameter message contains metadata about the parameters required for executing an Action.
func (*InputParameter) MarshalJSON ¶
func (s *InputParameter) MarshalJSON() ([]byte, error)
type JsonSchema ¶ added in v0.142.0
type JsonSchema struct { // AdditionalDetails: Additional details apart from standard json schema // fields, this gives flexibility to store metadata about the schema AdditionalDetails googleapi.RawMessage `json:"additionalDetails,omitempty"` // Default: The default value of the field or object described by this // schema. Default interface{} `json:"default,omitempty"` // Description: A description of this schema. Description string `json:"description,omitempty"` // Enum: Possible values for an enumeration. This works in conjunction // with `type` to represent types with a fixed set of legal values Enum []interface{} `json:"enum,omitempty"` // Format: Format of the value as per // https://json-schema.org/understanding-json-schema/reference/string.html#format Format string `json:"format,omitempty"` // Items: Schema that applies to array values, applicable only if this // is of type `array`. Items *JsonSchema `json:"items,omitempty"` // JdbcType: JDBC datatype of the field. // // Possible values: // "DATA_TYPE_UNSPECIFIED" - Datatype unspecified. // "INT" - Deprecated Int type, use INTEGER type instead. // "SMALLINT" - Small int type. // "DOUBLE" - Double type. // "DATE" - Date type. // "DATETIME" - Deprecated Datetime type. // "TIME" - Time type. // "STRING" - Deprecated string type, use VARCHAR type instead. // "LONG" - Deprecated Long type, use BIGINT type instead. // "BOOLEAN" - Boolean type. // "DECIMAL" - Decimal type. // "UUID" - Deprecated UUID type, use VARCHAR instead. // "BLOB" - Blob type. // "BIT" - Bit type. // "TINYINT" - Tiny int type. // "INTEGER" - Integer type. // "BIGINT" - Big int type. // "FLOAT" - Float type. // "REAL" - Real type. // "NUMERIC" - Numeric type. // "CHAR" - Char type. // "VARCHAR" - Varchar type. // "LONGVARCHAR" - Long varchar type. // "TIMESTAMP" - Timestamp type. // "NCHAR" - Nchar type. // "NVARCHAR" - Nvarchar type. // "LONGNVARCHAR" - Long Nvarchar type. // "NULL" - Null type. // "OTHER" - Other type. // "JAVA_OBJECT" - Java object type. // "DISTINCT" - Distinct type keyword. // "STRUCT" - Struct type. // "ARRAY" - Array type. // "CLOB" - Clob type. // "REF" - Ref type. // "DATALINK" - Datalink type. // "ROWID" - Row ID type. // "BINARY" - Binary type. // "VARBINARY" - Varbinary type. // "LONGVARBINARY" - Long Varbinary type. // "NCLOB" - Nclob type. // "SQLXML" - SQLXML type. // "REF_CURSOR" - Ref_cursor type. // "TIME_WITH_TIMEZONE" - Time with timezone type. // "TIMESTAMP_WITH_TIMEZONE" - Timestamp with timezone type. JdbcType string `json:"jdbcType,omitempty"` // Properties: The child schemas, applicable only if this is of type // `object`. The key is the name of the property and the value is the // json schema that describes that property Properties map[string]JsonSchema `json:"properties,omitempty"` // Required: Whether this property is required. Required []string `json:"required,omitempty"` // Type: JSON Schema Validation: A Vocabulary for Structural Validation // of JSON Type []string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "AdditionalDetails") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AdditionalDetails") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
JsonSchema: JsonSchema representation of schema metadata
func (*JsonSchema) MarshalJSON ¶ added in v0.142.0
func (s *JsonSchema) MarshalJSON() ([]byte, error)
type ListActionsResponse ¶
type ListActionsResponse struct { // Actions: List of action metadata. Actions []*Action `json:"actions,omitempty"` // NextPageToken: Next page token if more actions available. NextPageToken string `json:"nextPageToken,omitempty"` // UnsupportedActionNames: List of actions which contain unsupported // Datatypes. Check datatype.proto for more information. UnsupportedActionNames []string `json:"unsupportedActionNames,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Actions") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Actions") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListActionsResponse: Response message for ActionService.ListActions
func (*ListActionsResponse) MarshalJSON ¶
func (s *ListActionsResponse) MarshalJSON() ([]byte, error)
type ListEntitiesResponse ¶
type ListEntitiesResponse struct { // Entities: List containing entity rows. Entities []*Entity `json:"entities,omitempty"` // NextPageToken: Next page token if more records are available. 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. "Entities") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Entities") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListEntitiesResponse: Response message for EntityService.ListEntities
func (*ListEntitiesResponse) MarshalJSON ¶
func (s *ListEntitiesResponse) MarshalJSON() ([]byte, error)
type ListEntityTypesResponse ¶
type ListEntityTypesResponse struct { // NextPageToken: Next page token if more entity types available. NextPageToken string `json:"nextPageToken,omitempty"` // Types: List of metadata related to all entity types. Types []*EntityType `json:"types,omitempty"` // UnsupportedTypeNames: List of entity type names which contain // unsupported Datatypes. Check datatype.proto for more information. UnsupportedTypeNames []string `json:"unsupportedTypeNames,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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListEntityTypesResponse: Response message for EntityService.ListEntityTypes
func (*ListEntityTypesResponse) MarshalJSON ¶
func (s *ListEntityTypesResponse) MarshalJSON() ([]byte, error)
type ProjectsLocationsConnectionsActionsExecuteCall ¶
type ProjectsLocationsConnectionsActionsExecuteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectionsActionsExecuteCall) Context ¶
func (c *ProjectsLocationsConnectionsActionsExecuteCall) Context(ctx context.Context) *ProjectsLocationsConnectionsActionsExecuteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsConnectionsActionsExecuteCall) Do ¶
func (c *ProjectsLocationsConnectionsActionsExecuteCall) Do(opts ...googleapi.CallOption) (*ExecuteActionResponse, error)
Do executes the "connectors.projects.locations.connections.actions.execute" call. Exactly one of *ExecuteActionResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ExecuteActionResponse.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 (*ProjectsLocationsConnectionsActionsExecuteCall) Fields ¶
func (c *ProjectsLocationsConnectionsActionsExecuteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsActionsExecuteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsConnectionsActionsExecuteCall) Header ¶
func (c *ProjectsLocationsConnectionsActionsExecuteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsConnectionsActionsGetCall ¶ added in v0.142.0
type ProjectsLocationsConnectionsActionsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectionsActionsGetCall) Context ¶ added in v0.142.0
func (c *ProjectsLocationsConnectionsActionsGetCall) Context(ctx context.Context) *ProjectsLocationsConnectionsActionsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsConnectionsActionsGetCall) Do ¶ added in v0.142.0
func (c *ProjectsLocationsConnectionsActionsGetCall) Do(opts ...googleapi.CallOption) (*Action, error)
Do executes the "connectors.projects.locations.connections.actions.get" call. Exactly one of *Action or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Action.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 (*ProjectsLocationsConnectionsActionsGetCall) Fields ¶ added in v0.142.0
func (c *ProjectsLocationsConnectionsActionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsActionsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsConnectionsActionsGetCall) Header ¶ added in v0.142.0
func (c *ProjectsLocationsConnectionsActionsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsConnectionsActionsGetCall) IfNoneMatch ¶ added in v0.142.0
func (c *ProjectsLocationsConnectionsActionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsActionsGetCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsConnectionsActionsListCall ¶
type ProjectsLocationsConnectionsActionsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectionsActionsListCall) Context ¶
func (c *ProjectsLocationsConnectionsActionsListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsActionsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsConnectionsActionsListCall) Do ¶
func (c *ProjectsLocationsConnectionsActionsListCall) Do(opts ...googleapi.CallOption) (*ListActionsResponse, error)
Do executes the "connectors.projects.locations.connections.actions.list" call. Exactly one of *ListActionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListActionsResponse.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 (*ProjectsLocationsConnectionsActionsListCall) Fields ¶
func (c *ProjectsLocationsConnectionsActionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsActionsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsConnectionsActionsListCall) Header ¶
func (c *ProjectsLocationsConnectionsActionsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsConnectionsActionsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsConnectionsActionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsActionsListCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsConnectionsActionsListCall) PageSize ¶
func (c *ProjectsLocationsConnectionsActionsListCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsActionsListCall
PageSize sets the optional parameter "pageSize": Number of Actions to return. Defaults to 25.
func (*ProjectsLocationsConnectionsActionsListCall) PageToken ¶
func (c *ProjectsLocationsConnectionsActionsListCall) PageToken(pageToken string) *ProjectsLocationsConnectionsActionsListCall
PageToken sets the optional parameter "pageToken": Page token, return from a previous ListActions call, that can be used retrieve the next page of content. If unspecified, the request returns the first page of actions.
func (*ProjectsLocationsConnectionsActionsListCall) Pages ¶
func (c *ProjectsLocationsConnectionsActionsListCall) Pages(ctx context.Context, f func(*ListActionsResponse) 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.
func (*ProjectsLocationsConnectionsActionsListCall) View ¶ added in v0.142.0
func (c *ProjectsLocationsConnectionsActionsListCall) View(view string) *ProjectsLocationsConnectionsActionsListCall
View sets the optional parameter "view": Specifies which fields of the Action are returned in the response.
Possible values:
"ACTION_VIEW_UNSPECIFIED" - VIEW_UNSPECIFIED. The unset value
Defaults to FULL View.
"ACTION_VIEW_BASIC" - Return only action names. "ACTION_VIEW_FULL" - Return actions with schema.
type ProjectsLocationsConnectionsActionsService ¶
type ProjectsLocationsConnectionsActionsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsConnectionsActionsService ¶
func NewProjectsLocationsConnectionsActionsService(s *Service) *ProjectsLocationsConnectionsActionsService
func (*ProjectsLocationsConnectionsActionsService) Execute ¶
func (r *ProjectsLocationsConnectionsActionsService) Execute(name string, executeactionrequest *ExecuteActionRequest) *ProjectsLocationsConnectionsActionsExecuteCall
Execute: Executes an action with the name specified in the request. The input parameters for executing the action are passed through the body of the ExecuteAction request.
- name: Resource name of the Action. Format: projects/{project}/locations/{location}/connections/{connection}/act ions/{action}.
func (*ProjectsLocationsConnectionsActionsService) Get ¶ added in v0.142.0
func (r *ProjectsLocationsConnectionsActionsService) Get(name string) *ProjectsLocationsConnectionsActionsGetCall
Get: Gets the schema of the given action.
- name: Resource name of the Action. Format: projects/{project}/locations/{location}/connections/{connection}/act ions/{action}.
func (*ProjectsLocationsConnectionsActionsService) List ¶
func (r *ProjectsLocationsConnectionsActionsService) List(parent string) *ProjectsLocationsConnectionsActionsListCall
List: Gets the schema of all the actions supported by the connector.
- parent: Parent resource name of the Action. Format: projects/{project}/locations/{location}/connections/{connection}.
type ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall ¶
type ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall) Context ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall) Do ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall) Do(opts ...googleapi.CallOption) (*Entity, error)
Do executes the "connectors.projects.locations.connections.entityTypes.entities.create" call. Exactly one of *Entity or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Entity.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 (*ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall) Fields ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall) Header ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall ¶
type ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall) Context ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall) Do ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "connectors.projects.locations.connections.entityTypes.entities.delete" call. Exactly one of *Empty or error will be non-nil. 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 (*ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall) Fields ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall) Header ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall ¶
type ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall) Conditions ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall) Conditions(conditions string) *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall
Conditions sets the optional parameter "conditions": Required. Conditions to be used when deleting entities. From a proto standpoint, There are no restrictions on what can be passed using this field. The connector documentation should have information about what format of filters/conditions are supported. Note: If this conditions field is left empty, an exception is thrown. We don't want to consider 'empty conditions' to be a match-all case. Connector developers can determine and document what a match-all case constraint would be.
func (*ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall) Context ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall) Do ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "connectors.projects.locations.connections.entityTypes.entities.deleteEntitiesWithConditions" call. Exactly one of *Empty or error will be non-nil. 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 (*ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall) Fields ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall) Header ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsConnectionsEntityTypesEntitiesGetCall ¶
type ProjectsLocationsConnectionsEntityTypesEntitiesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectionsEntityTypesEntitiesGetCall) Context ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesGetCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEntityTypesEntitiesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsConnectionsEntityTypesEntitiesGetCall) Do ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesGetCall) Do(opts ...googleapi.CallOption) (*Entity, error)
Do executes the "connectors.projects.locations.connections.entityTypes.entities.get" call. Exactly one of *Entity or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Entity.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 (*ProjectsLocationsConnectionsEntityTypesEntitiesGetCall) Fields ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEntityTypesEntitiesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsConnectionsEntityTypesEntitiesGetCall) Header ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsConnectionsEntityTypesEntitiesGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsEntityTypesEntitiesGetCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsConnectionsEntityTypesEntitiesListCall ¶
type ProjectsLocationsConnectionsEntityTypesEntitiesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectionsEntityTypesEntitiesListCall) Conditions ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) Conditions(conditions string) *ProjectsLocationsConnectionsEntityTypesEntitiesListCall
Conditions sets the optional parameter "conditions": Conditions to be used when listing entities. From a proto standpoint, There are no restrictions on what can be passed using this field. The connector documentation should have information about what format of filters/conditions are supported.
func (*ProjectsLocationsConnectionsEntityTypesEntitiesListCall) Context ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEntityTypesEntitiesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsConnectionsEntityTypesEntitiesListCall) Do ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) Do(opts ...googleapi.CallOption) (*ListEntitiesResponse, error)
Do executes the "connectors.projects.locations.connections.entityTypes.entities.list" call. Exactly one of *ListEntitiesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListEntitiesResponse.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 (*ProjectsLocationsConnectionsEntityTypesEntitiesListCall) Fields ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEntityTypesEntitiesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsConnectionsEntityTypesEntitiesListCall) Header ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsConnectionsEntityTypesEntitiesListCall) IfNoneMatch ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsEntityTypesEntitiesListCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsConnectionsEntityTypesEntitiesListCall) PageSize ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsEntityTypesEntitiesListCall
PageSize sets the optional parameter "pageSize": Number of entity rows to return. Defaults page size = 25. Max page size = 200.
func (*ProjectsLocationsConnectionsEntityTypesEntitiesListCall) PageToken ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) PageToken(pageToken string) *ProjectsLocationsConnectionsEntityTypesEntitiesListCall
PageToken sets the optional parameter "pageToken": Page token value if available from a previous request.
func (*ProjectsLocationsConnectionsEntityTypesEntitiesListCall) Pages ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) Pages(ctx context.Context, f func(*ListEntitiesResponse) 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.
func (*ProjectsLocationsConnectionsEntityTypesEntitiesListCall) SortBy ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) SortBy(sortBy ...string) *ProjectsLocationsConnectionsEntityTypesEntitiesListCall
SortBy sets the optional parameter "sortBy": List of 'sort_by' columns to use when returning the results.
type ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall ¶
type ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall) Context ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall) Do ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall) Do(opts ...googleapi.CallOption) (*Entity, error)
Do executes the "connectors.projects.locations.connections.entityTypes.entities.patch" call. Exactly one of *Entity or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Entity.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 (*ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall) Fields ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall) Header ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsConnectionsEntityTypesEntitiesService ¶
type ProjectsLocationsConnectionsEntityTypesEntitiesService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsConnectionsEntityTypesEntitiesService ¶
func NewProjectsLocationsConnectionsEntityTypesEntitiesService(s *Service) *ProjectsLocationsConnectionsEntityTypesEntitiesService
func (*ProjectsLocationsConnectionsEntityTypesEntitiesService) Create ¶
func (r *ProjectsLocationsConnectionsEntityTypesEntitiesService) Create(parent string, entity *Entity) *ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall
Create: Creates a new entity row of the specified entity type in the external system. The field values for creating the row are contained in the body of the request. The response message contains a `Entity` message object returned as a response by the external system.
- parent: Resource name of the Entity Type. Format: projects/{project}/locations/{location}/connections/{connection}/ent ityTypes/{type}.
func (*ProjectsLocationsConnectionsEntityTypesEntitiesService) Delete ¶
func (r *ProjectsLocationsConnectionsEntityTypesEntitiesService) Delete(name string) *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall
Delete: Deletes an existing entity row matching the entity type and entity id specified in the request.
- name: Resource name of the Entity Type. Format: projects/{project}/locations/{location}/connections/{connection}/ent ityTypes/{type}/entities/{id}.
func (*ProjectsLocationsConnectionsEntityTypesEntitiesService) DeleteEntitiesWithConditions ¶
func (r *ProjectsLocationsConnectionsEntityTypesEntitiesService) DeleteEntitiesWithConditions(entityType string) *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall
DeleteEntitiesWithConditions: Deletes entities based on conditions specified in the request and not on entity id.
- entityType: Resource name of the Entity Type. Format: projects/{project}/locations/{location}/connections/{connection}/ent ityTypes/{type}.
func (*ProjectsLocationsConnectionsEntityTypesEntitiesService) Get ¶
func (r *ProjectsLocationsConnectionsEntityTypesEntitiesService) Get(name string) *ProjectsLocationsConnectionsEntityTypesEntitiesGetCall
Get: Gets a single entity row matching the entity type and entity id specified in the request.
- name: Resource name of the Entity Type. Format: projects/{project}/locations/{location}/connections/{connection}/ent ityTypes/{type}/entities/{id}.
func (*ProjectsLocationsConnectionsEntityTypesEntitiesService) List ¶
func (r *ProjectsLocationsConnectionsEntityTypesEntitiesService) List(parent string) *ProjectsLocationsConnectionsEntityTypesEntitiesListCall
List: Lists entity rows of a particular entity type contained in the request. Note: 1. Currently, only max of one 'sort_by' column is supported. 2. If no 'sort_by' column is provided, the primary key of the table is used. If zero or more than one primary key is available, we default to the unpaginated list entities logic which only returns the first page. 3. The values of the 'sort_by' columns must uniquely identify an entity row, otherwise undefined behaviors may be observed during pagination. 4. Since transactions are not supported, any updates, inserts or deletes during pagination can lead to stale data being returned or other unexpected behaviors.
- parent: Resource name of the Entity Type. Format: projects/{project}/locations/{location}/connections/{connection}/ent ityTypes/{type}.
func (*ProjectsLocationsConnectionsEntityTypesEntitiesService) Patch ¶
func (r *ProjectsLocationsConnectionsEntityTypesEntitiesService) Patch(name string, entity *Entity) *ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall
Patch: Updates an existing entity row matching the entity type and entity id specified in the request. The fields in the entity row that need to be modified are contained in the body of the request. All unspecified fields are left unchanged. The response message contains a `Entity` message object returned as a response by the external system.
- name: Output only. Resource name of the Entity. Format: projects/{project}/locations/{location}/connections/{connection}/ent ityTypes/{type}/entities/{id}.
func (*ProjectsLocationsConnectionsEntityTypesEntitiesService) UpdateEntitiesWithConditions ¶
func (r *ProjectsLocationsConnectionsEntityTypesEntitiesService) UpdateEntitiesWithConditions(entityType string, entity *Entity) *ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall
UpdateEntitiesWithConditions: Updates entities based on conditions specified in the request and not on entity id.
- entityType: Resource name of the Entity Type. Format: projects/{project}/locations/{location}/connections/{connection}/ent ityTypes/{type}.
type ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall ¶
type ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall) Conditions ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall) Conditions(conditions string) *ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall
Conditions sets the optional parameter "conditions": Required. Conditions to be used when updating entities. From a proto standpoint, There are no restrictions on what can be passed using this field. The connector documentation should have information about what format of filters/conditions are supported. Note: If this conditions field is left empty, an exception is thrown. We don't want to consider 'empty conditions' to be a match-all case. Connector developers can determine and document what a match-all case constraint would be.
func (*ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall) Context ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall) Do ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall) Do(opts ...googleapi.CallOption) (*UpdateEntitiesWithConditionsResponse, error)
Do executes the "connectors.projects.locations.connections.entityTypes.entities.updateEntitiesWithConditions" call. Exactly one of *UpdateEntitiesWithConditionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *UpdateEntitiesWithConditionsResponse.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 (*ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall) Fields ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall) Header ¶
func (c *ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsConnectionsEntityTypesGetCall ¶ added in v0.142.0
type ProjectsLocationsConnectionsEntityTypesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectionsEntityTypesGetCall) Context ¶ added in v0.142.0
func (c *ProjectsLocationsConnectionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEntityTypesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsConnectionsEntityTypesGetCall) Do ¶ added in v0.142.0
func (c *ProjectsLocationsConnectionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*EntityType, error)
Do executes the "connectors.projects.locations.connections.entityTypes.get" call. Exactly one of *EntityType or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *EntityType.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 (*ProjectsLocationsConnectionsEntityTypesGetCall) Fields ¶ added in v0.142.0
func (c *ProjectsLocationsConnectionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEntityTypesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsConnectionsEntityTypesGetCall) Header ¶ added in v0.142.0
func (c *ProjectsLocationsConnectionsEntityTypesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsConnectionsEntityTypesGetCall) IfNoneMatch ¶ added in v0.142.0
func (c *ProjectsLocationsConnectionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsEntityTypesGetCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsConnectionsEntityTypesListCall ¶
type ProjectsLocationsConnectionsEntityTypesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectionsEntityTypesListCall) Context ¶
func (c *ProjectsLocationsConnectionsEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEntityTypesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsConnectionsEntityTypesListCall) Do ¶
func (c *ProjectsLocationsConnectionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*ListEntityTypesResponse, error)
Do executes the "connectors.projects.locations.connections.entityTypes.list" call. Exactly one of *ListEntityTypesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListEntityTypesResponse.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 (*ProjectsLocationsConnectionsEntityTypesListCall) Fields ¶
func (c *ProjectsLocationsConnectionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEntityTypesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsConnectionsEntityTypesListCall) Header ¶
func (c *ProjectsLocationsConnectionsEntityTypesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsConnectionsEntityTypesListCall) IfNoneMatch ¶
func (c *ProjectsLocationsConnectionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsEntityTypesListCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsConnectionsEntityTypesListCall) PageSize ¶
func (c *ProjectsLocationsConnectionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsEntityTypesListCall
PageSize sets the optional parameter "pageSize": Number of entity types to return. Defaults to 25.
func (*ProjectsLocationsConnectionsEntityTypesListCall) PageToken ¶
func (c *ProjectsLocationsConnectionsEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsConnectionsEntityTypesListCall
PageToken sets the optional parameter "pageToken": Page token, return from a previous ListEntityTypes call, that can be used retrieve the next page of content. If unspecified, the request returns the first page of entity types.
func (*ProjectsLocationsConnectionsEntityTypesListCall) Pages ¶
func (c *ProjectsLocationsConnectionsEntityTypesListCall) Pages(ctx context.Context, f func(*ListEntityTypesResponse) 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.
func (*ProjectsLocationsConnectionsEntityTypesListCall) View ¶ added in v0.142.0
func (c *ProjectsLocationsConnectionsEntityTypesListCall) View(view string) *ProjectsLocationsConnectionsEntityTypesListCall
View sets the optional parameter "view": Specifies which fields of the Entity Type are returned in the response.
Possible values:
"ENTITY_TYPE_VIEW_UNSPECIFIED" - VIEW_UNSPECIFIED. The unset value.
Defaults to FULL View.
"ENTITY_TYPE_VIEW_BASIC" - Return only entity type names. "ENTITY_TYPE_VIEW_FULL" - Return entity types with schema
type ProjectsLocationsConnectionsEntityTypesService ¶
type ProjectsLocationsConnectionsEntityTypesService struct { Entities *ProjectsLocationsConnectionsEntityTypesEntitiesService // contains filtered or unexported fields }
func NewProjectsLocationsConnectionsEntityTypesService ¶
func NewProjectsLocationsConnectionsEntityTypesService(s *Service) *ProjectsLocationsConnectionsEntityTypesService
func (*ProjectsLocationsConnectionsEntityTypesService) Get ¶ added in v0.142.0
func (r *ProjectsLocationsConnectionsEntityTypesService) Get(name string) *ProjectsLocationsConnectionsEntityTypesGetCall
Get: Gets metadata of given entity type
- name: Resource name of the Entity Type. Format: projects/{project}/locations/{location}/connections/{connection}/ent ityTypes/{entityType}.
func (*ProjectsLocationsConnectionsEntityTypesService) List ¶
func (r *ProjectsLocationsConnectionsEntityTypesService) List(parent string) *ProjectsLocationsConnectionsEntityTypesListCall
List: Lists metadata related to all entity types present in the external system.
- parent: Resource name of the Entity Type. Format: projects/{project}/locations/{location}/connections/{connection}.
type ProjectsLocationsConnectionsExecuteSqlQueryCall ¶
type ProjectsLocationsConnectionsExecuteSqlQueryCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectionsExecuteSqlQueryCall) Context ¶
func (c *ProjectsLocationsConnectionsExecuteSqlQueryCall) Context(ctx context.Context) *ProjectsLocationsConnectionsExecuteSqlQueryCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsConnectionsExecuteSqlQueryCall) Do ¶
func (c *ProjectsLocationsConnectionsExecuteSqlQueryCall) Do(opts ...googleapi.CallOption) (*ExecuteSqlQueryResponse, error)
Do executes the "connectors.projects.locations.connections.executeSqlQuery" call. Exactly one of *ExecuteSqlQueryResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ExecuteSqlQueryResponse.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 (*ProjectsLocationsConnectionsExecuteSqlQueryCall) Fields ¶
func (c *ProjectsLocationsConnectionsExecuteSqlQueryCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsExecuteSqlQueryCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsConnectionsExecuteSqlQueryCall) Header ¶
func (c *ProjectsLocationsConnectionsExecuteSqlQueryCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsConnectionsService ¶
type ProjectsLocationsConnectionsService struct { Actions *ProjectsLocationsConnectionsActionsService EntityTypes *ProjectsLocationsConnectionsEntityTypesService // contains filtered or unexported fields }
func NewProjectsLocationsConnectionsService ¶
func NewProjectsLocationsConnectionsService(s *Service) *ProjectsLocationsConnectionsService
func (*ProjectsLocationsConnectionsService) ExecuteSqlQuery ¶
func (r *ProjectsLocationsConnectionsService) ExecuteSqlQuery(connection string, executesqlqueryrequest *ExecuteSqlQueryRequest) *ProjectsLocationsConnectionsExecuteSqlQueryCall
ExecuteSqlQuery: Executes a SQL statement specified in the body of the request. An example of this SQL statement in the case of Salesforce connector would be 'select * from Account a, Order o where a.Id = o.AccountId'.
- connection: Resource name of the Connection. Format: projects/{project}/locations/{location}/connections/{connection}.
type ProjectsLocationsService ¶
type ProjectsLocationsService struct { Connections *ProjectsLocationsConnectionsService // contains filtered or unexported fields }
func NewProjectsLocationsService ¶
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService
type ProjectsService ¶
type ProjectsService struct { Locations *ProjectsLocationsService // contains filtered or unexported fields }
func NewProjectsService ¶
func NewProjectsService(s *Service) *ProjectsService
type Query ¶
type Query struct { // MaxRows: Sets the limit for the maximum number of rows returned after // the query execution. MaxRows int64 `json:"maxRows,omitempty,string"` // Query: Required. Sql query to execute. Query string `json:"query,omitempty"` // QueryParameters: In the struct, the value corresponds to the value of // query parameter and date type corresponds to the date type of the // query parameter. QueryParameters []*QueryParameter `json:"queryParameters,omitempty"` // Timeout: Sets the number of seconds the driver will wait for a query // to execute. Timeout int64 `json:"timeout,omitempty,string"` // ForceSendFields is a list of field names (e.g. "MaxRows") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "MaxRows") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Query: A wrapper around the SQL query statement. This is needed so that the JSON representation of ExecuteSqlQueryRequest has the following format: `{"query":"select *"}`.
func (*Query) MarshalJSON ¶
type QueryParameter ¶ added in v0.139.0
type QueryParameter struct { // Possible values: // "DATA_TYPE_UNSPECIFIED" - Datatype unspecified. // "INT" - Deprecated Int type, use INTEGER type instead. // "SMALLINT" - Small int type. // "DOUBLE" - Double type. // "DATE" - Date type. // "DATETIME" - Deprecated Datetime type. // "TIME" - Time type. // "STRING" - Deprecated string type, use VARCHAR type instead. // "LONG" - Deprecated Long type, use BIGINT type instead. // "BOOLEAN" - Boolean type. // "DECIMAL" - Decimal type. // "UUID" - Deprecated UUID type, use VARCHAR instead. // "BLOB" - Blob type. // "BIT" - Bit type. // "TINYINT" - Tiny int type. // "INTEGER" - Integer type. // "BIGINT" - Big int type. // "FLOAT" - Float type. // "REAL" - Real type. // "NUMERIC" - Numeric type. // "CHAR" - Char type. // "VARCHAR" - Varchar type. // "LONGVARCHAR" - Long varchar type. // "TIMESTAMP" - Timestamp type. // "NCHAR" - Nchar type. // "NVARCHAR" - Nvarchar type. // "LONGNVARCHAR" - Long Nvarchar type. // "NULL" - Null type. // "OTHER" - Other type. // "JAVA_OBJECT" - Java object type. // "DISTINCT" - Distinct type keyword. // "STRUCT" - Struct type. // "ARRAY" - Array type. // "CLOB" - Clob type. // "REF" - Ref type. // "DATALINK" - Datalink type. // "ROWID" - Row ID type. // "BINARY" - Binary type. // "VARBINARY" - Varbinary type. // "LONGVARBINARY" - Long Varbinary type. // "NCLOB" - Nclob type. // "SQLXML" - SQLXML type. // "REF_CURSOR" - Ref_cursor type. // "TIME_WITH_TIMEZONE" - Time with timezone type. // "TIMESTAMP_WITH_TIMEZONE" - Timestamp with timezone type. DataType string `json:"dataType,omitempty"` Value interface{} `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "DataType") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DataType") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
QueryParameter: Query parameter definition
func (*QueryParameter) MarshalJSON ¶ added in v0.139.0
func (s *QueryParameter) MarshalJSON() ([]byte, error)
type Reference ¶
type Reference struct { // Name: Name of the reference field. Name string `json:"name,omitempty"` // Type: Name of reference entity type. Type string `json:"type,omitempty"` // 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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*Reference) MarshalJSON ¶
type ResultMetadata ¶
type ResultMetadata struct { // DataType: The data type of the metadata field // // Possible values: // "DATA_TYPE_UNSPECIFIED" - Datatype unspecified. // "INT" - Deprecated Int type, use INTEGER type instead. // "SMALLINT" - Small int type. // "DOUBLE" - Double type. // "DATE" - Date type. // "DATETIME" - Deprecated Datetime type. // "TIME" - Time type. // "STRING" - Deprecated string type, use VARCHAR type instead. // "LONG" - Deprecated Long type, use BIGINT type instead. // "BOOLEAN" - Boolean type. // "DECIMAL" - Decimal type. // "UUID" - Deprecated UUID type, use VARCHAR instead. // "BLOB" - Blob type. // "BIT" - Bit type. // "TINYINT" - Tiny int type. // "INTEGER" - Integer type. // "BIGINT" - Big int type. // "FLOAT" - Float type. // "REAL" - Real type. // "NUMERIC" - Numeric type. // "CHAR" - Char type. // "VARCHAR" - Varchar type. // "LONGVARCHAR" - Long varchar type. // "TIMESTAMP" - Timestamp type. // "NCHAR" - Nchar type. // "NVARCHAR" - Nvarchar type. // "LONGNVARCHAR" - Long Nvarchar type. // "NULL" - Null type. // "OTHER" - Other type. // "JAVA_OBJECT" - Java object type. // "DISTINCT" - Distinct type keyword. // "STRUCT" - Struct type. // "ARRAY" - Array type. // "CLOB" - Clob type. // "REF" - Ref type. // "DATALINK" - Datalink type. // "ROWID" - Row ID type. // "BINARY" - Binary type. // "VARBINARY" - Varbinary type. // "LONGVARBINARY" - Long Varbinary type. // "NCLOB" - Nclob type. // "SQLXML" - SQLXML type. // "REF_CURSOR" - Ref_cursor type. // "TIME_WITH_TIMEZONE" - Time with timezone type. // "TIMESTAMP_WITH_TIMEZONE" - Timestamp with timezone type. DataType string `json:"dataType,omitempty"` // Description: A brief description of the metadata field. Description string `json:"description,omitempty"` // JsonSchema: JsonSchema of the result, applicable only if parameter is // of type `STRUCT` JsonSchema *JsonSchema `json:"jsonSchema,omitempty"` // Name: Name of the metadata field. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "DataType") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DataType") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ResultMetadata: Result Metadata message contains metadata about the result returned after executing an Action.
func (*ResultMetadata) MarshalJSON ¶
func (s *ResultMetadata) MarshalJSON() ([]byte, error)
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 UpdateEntitiesWithConditionsResponse ¶
type UpdateEntitiesWithConditionsResponse struct { // Response: Response returned by the external system. 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. "Response") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Response") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
UpdateEntitiesWithConditionsResponse: Response message for EntityService.UpdateEntitiesWithConditions
func (*UpdateEntitiesWithConditionsResponse) MarshalJSON ¶
func (s *UpdateEntitiesWithConditionsResponse) MarshalJSON() ([]byte, error)