account_connectors
Creates, updates, deletes, gets or lists an account_connectors resource.
Overview
| Name | account_connectors |
| Type | Resource |
| Id | google.developerconnect.account_connectors |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. The resource name of the accountConnector, in the format projects/{project}/locations/{location}/accountConnectors/{account_connector_id}. |
annotations | object | Optional. Allows users to store small amounts of arbitrary data. |
createTime | string (google-datetime) | Output only. The timestamp when the accountConnector was created. |
customOauthConfig | object | Custom OAuth config. (id: CustomOAuthConfig) |
etag | string | Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. |
labels | object | Optional. Labels as key value pairs |
oauthStartUri | string | Output only. Start OAuth flow by clicking on this URL. |
providerOauthConfig | object | Optional. Provider OAuth config. (id: ProviderOAuthConfig) |
proxyConfig | object | Optional. Configuration for the http and git proxy features. (id: ProxyConfig) |
uid | string | Output only. A system-assigned unique identifier for the Account Connector. |
updateTime | string (google-datetime) | Output only. The timestamp when the accountConnector was updated. |
| Name | Datatype | Description |
|---|
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | projectsId, locationsId, accountConnectorsId | Gets details of a single AccountConnector. | |
list | select | projectsId, locationsId | pageToken, filter, orderBy, pageSize | Lists AccountConnectors in a given project and location. |
create | insert | projectsId, locationsId | accountConnectorId, validateOnly, requestId | Creates a new AccountConnector in a given project and location. |
patch | update | projectsId, locationsId, accountConnectorsId | requestId, allowMissing, validateOnly, updateMask | Updates the parameters of a single AccountConnector. |
delete | delete | projectsId, locationsId, accountConnectorsId | requestId, validateOnly, etag, force | Deletes a single AccountConnector. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
accountConnectorsId | string | |
locationsId | string | |
projectsId | string | |
accountConnectorId | string | |
allowMissing | boolean | |
etag | string | |
filter | string | |
force | boolean | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string | |
requestId | string | |
updateMask | string (google-fieldmask) | |
validateOnly | boolean |
SELECT examples
- get
- list
Gets details of a single AccountConnector.
SELECT
name,
annotations,
createTime,
customOauthConfig,
etag,
labels,
oauthStartUri,
providerOauthConfig,
proxyConfig,
uid,
updateTime
FROM google.developerconnect.account_connectors
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND accountConnectorsId = '{{ accountConnectorsId }}' -- required
;
Lists AccountConnectors in a given project and location.
SELECT
*
FROM google.developerconnect.account_connectors
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}'
AND pageSize = '{{ pageSize }}'
;
INSERT examples
- create
- Manifest
Creates a new AccountConnector in a given project and location.
INSERT INTO google.developerconnect.account_connectors (
data__annotations,
data__customOauthConfig,
data__providerOauthConfig,
data__name,
data__labels,
data__etag,
data__proxyConfig,
projectsId,
locationsId,
accountConnectorId,
validateOnly,
requestId
)
SELECT
'{{ annotations }}',
'{{ customOauthConfig }}',
'{{ providerOauthConfig }}',
'{{ name }}',
'{{ labels }}',
'{{ etag }}',
'{{ proxyConfig }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ accountConnectorId }}',
'{{ validateOnly }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;
# Description fields are for documentation purposes
- name: account_connectors
props:
- name: projectsId
value: "{{ projectsId }}"
description: Required parameter for the account_connectors resource.
- name: locationsId
value: "{{ locationsId }}"
description: Required parameter for the account_connectors resource.
- name: annotations
value: "{{ annotations }}"
description: |
Optional. Allows users to store small amounts of arbitrary data.
- name: customOauthConfig
description: |
Custom OAuth config.
value:
clientSecret: "{{ clientSecret }}"
authUri: "{{ authUri }}"
hostUri: "{{ hostUri }}"
scmProvider: "{{ scmProvider }}"
serviceDirectoryConfig:
service: "{{ service }}"
scopes:
- "{{ scopes }}"
clientId: "{{ clientId }}"
sslCaCertificate: "{{ sslCaCertificate }}"
pkceDisabled: {{ pkceDisabled }}
serverVersion: "{{ serverVersion }}"
tokenUri: "{{ tokenUri }}"
- name: providerOauthConfig
description: |
Optional. Provider OAuth config.
value:
systemProviderId: "{{ systemProviderId }}"
scopes:
- "{{ scopes }}"
- name: name
value: "{{ name }}"
description: |
Identifier. The resource name of the accountConnector, in the format `projects/{project}/locations/{location}/accountConnectors/{account_connector_id}`.
- name: labels
value: "{{ labels }}"
description: |
Optional. Labels as key value pairs
- name: etag
value: "{{ etag }}"
description: |
Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- name: proxyConfig
description: |
Optional. Configuration for the http and git proxy features.
value:
enabled: {{ enabled }}
httpProxyBaseUri: "{{ httpProxyBaseUri }}"
- name: accountConnectorId
value: "{{ accountConnectorId }}"
- name: validateOnly
value: {{ validateOnly }}
- name: requestId
value: "{{ requestId }}"
UPDATE examples
- patch
Updates the parameters of a single AccountConnector.
UPDATE google.developerconnect.account_connectors
SET
data__annotations = '{{ annotations }}',
data__customOauthConfig = '{{ customOauthConfig }}',
data__providerOauthConfig = '{{ providerOauthConfig }}',
data__name = '{{ name }}',
data__labels = '{{ labels }}',
data__etag = '{{ etag }}',
data__proxyConfig = '{{ proxyConfig }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND accountConnectorsId = '{{ accountConnectorsId }}' --required
AND requestId = '{{ requestId}}'
AND allowMissing = {{ allowMissing}}
AND validateOnly = {{ validateOnly}}
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;
DELETE examples
- delete
Deletes a single AccountConnector.
DELETE FROM google.developerconnect.account_connectors
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND accountConnectorsId = '{{ accountConnectorsId }}' --required
AND requestId = '{{ requestId }}'
AND validateOnly = '{{ validateOnly }}'
AND etag = '{{ etag }}'
AND force = '{{ force }}'
;