2 回答

TA貢獻1856條經驗 獲得超11個贊
溶液:IpConfiguration: "WORKER_IP_PRIVATE"
像這樣作為上下文:
response := dataflowService.Projects.Locations.Templates.Create(PROJECT_ID, location, &dataflow.CreateJobFromTemplateRequest{
Environment: &dataflow.RuntimeEnvironment{
AdditionalExperiments: []string{},
AdditionalUserLabels: map[string]string{},
BypassTempDirValidation: false,
EnableStreamingEngine: false,
IpConfiguration: "WORKER_IP_PRIVATE",
KmsKeyName: "",
MachineType: "",
MaxWorkers: 0,
Network: "",
NumWorkers: 0,
ServiceAccountEmail: "",
Subnetwork: "https://www.googleapis.com/compute/v1/projects/" + HOST_PROJECT_ID + "/regions/europe-north1/subnetworks/" + SUBNETWORK + "",
TempLocation: "",
WorkerRegion: "",
WorkerZone: "",
Zone: "",
ForceSendFields: []string{},
NullFields: []string{},
},
- 2 回答
- 0 關注
- 77 瀏覽
添加回答
舉報