Skip to content

Commit

Permalink
Reorganize api.yaml, remove automated changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ty Larrabee committed Jul 25, 2019
1 parent a66050d commit 52514ce
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
23 changes: 14 additions & 9 deletions products/bigquerydatatransfer/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,40 +34,45 @@ objects:
description: |
Represents a data transfer configuration. A transfer configuration
contains all metadata needed to perform a data transfer.
references: !ruby/object:Api::Resource::ReferenceLinks
guides:
"Official Documentation": "https://cloud.google.com/bigquery/docs/reference/datatransfer/rest/"
api: "https://cloud.google.com/bigquery/docs/reference/datatransfer/rest/v1/projects.locations.transferConfigs/create"
parameters:
- !ruby/object:Api::Type::String
name: 'location'
description: |
The geographic location where the transfer config should reside.
Examples: US, EU, asia-northeast1. The default value is US.
url_param_only: true
input: true
default_value: US
description: |
The geographic location where the transfer config should reside.
Examples: US, EU, asia-northeast1. The default value is US.
properties:
- !ruby/object:Api::Type::String
name: 'displayName'
description: |
The user specified display name for the transfer config.
input: true
required: true
description: |
The user specified display name for the transfer config.
- !ruby/object:Api::Type::String
name: 'name'
output: true
description: |
The resource name of the transfer config. Transfer config names have the
form projects/{projectId}/locations/{location}/transferConfigs/{configId}.
Where configId is usually a uuid, but this is not required.
The name is ignored when creating a transfer config.
- !ruby/object:Api::Type::String
name: 'destinationDatasetId'
required: true
description: |
The BigQuery target dataset id.
required: true
- !ruby/object:Api::Type::String
name: 'dataSourceId'
description: |
The data source id. Cannot be changed once the transfer config is created.
input: true
required: true
description: |
The data source id. Cannot be changed once the transfer config is created.
- !ruby/object:Api::Type::String
name: 'schedule'
description: |
Expand All @@ -93,6 +98,6 @@ objects:
When set to true, no runs are scheduled for a given transfer.
- !ruby/object:Api::Type::KeyValuePairs
name: 'params'
required: true
description: |
These parameters are specific to each data source.
required: true
2 changes: 0 additions & 2 deletions products/bigquerydatatransfer/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ overrides: !ruby/object:Overrides::ResourceOverrides
custom_import: templates/terraform/custom_import/self_link_as_name.erb
post_create: templates/terraform/post_create/set_computed_name.erb
properties:
name: !ruby/object:Overrides::Terraform::PropertyOverride
output: true
location: !ruby/object:Overrides::Terraform::PropertyOverride
ignore_read: true
examples:
Expand Down
3 changes: 1 addition & 2 deletions third_party/terraform/utils/provider.go.erb
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func Provider() terraform.ResourceProvider {
ServiceManagementCustomEndpointEntryKey: ServiceManagementCustomEndpointEntry,
ServiceNetworkingCustomEndpointEntryKey: ServiceNetworkingCustomEndpointEntry,
ServiceUsageCustomEndpointEntryKey: ServiceUsageCustomEndpointEntry,
BigQueryCustomEndpointEntryKey: BigQueryCustomEndpointEntry,
BigQueryCustomEndpointEntryKey: BigQueryCustomEndpointEntry,
CloudFunctionsCustomEndpointEntryKey: CloudFunctionsCustomEndpointEntry,
CloudIoTCustomEndpointEntryKey: CloudIoTCustomEndpointEntry,
StorageTransferCustomEndpointEntryKey: StorageTransferCustomEndpointEntry,
Expand Down Expand Up @@ -395,7 +395,6 @@ func providerConfigure(d *schema.ResourceData) (interface{}, error) {
config.ServiceNetworkingBasePath = d.Get(ServiceNetworkingCustomEndpointEntryKey).(string)
config.ServiceUsageBasePath = d.Get(ServiceUsageCustomEndpointEntryKey).(string)
config.BigQueryBasePath = d.Get(BigQueryCustomEndpointEntryKey).(string)
config.BigqueryDataTransferBasePath = d.Get(BigqueryDataTransferCustomEndpointEntryKey).(string)
config.CloudFunctionsBasePath = d.Get(CloudFunctionsCustomEndpointEntryKey).(string)
config.CloudIoTBasePath = d.Get(CloudIoTCustomEndpointEntryKey).(string)
config.StorageTransferBasePath = d.Get(StorageTransferCustomEndpointEntryKey).(string)
Expand Down

0 comments on commit 52514ce

Please sign in to comment.