Service constructor

Service({
  1. String? name,
  2. Timestamp? createTime,
  3. Timestamp? updateTime,
  4. Map<String, String>? labels,
  5. HiveMetastoreConfig? hiveMetastoreConfig,
  6. String? network,
  7. String? endpointUri,
  8. int? port,
  9. Service_State? state,
  10. String? stateMessage,
  11. String? artifactGcsUri,
  12. Service_Tier? tier,
  13. MaintenanceWindow? maintenanceWindow,
  14. String? uid,
  15. MetadataManagementActivity? metadataManagementActivity,
  16. Service_ReleaseChannel? releaseChannel,
  17. EncryptionConfig? encryptionConfig,
  18. NetworkConfig? networkConfig,
  19. Service_DatabaseType? databaseType,
  20. TelemetryConfig? telemetryConfig,
  21. ScalingConfig? scalingConfig,
})

Implementation

factory Service({
  $core.String? name,
  $2.Timestamp? createTime,
  $2.Timestamp? updateTime,
  $core.Map<$core.String, $core.String>? labels,
  HiveMetastoreConfig? hiveMetastoreConfig,
  $core.String? network,
  $core.String? endpointUri,
  $core.int? port,
  Service_State? state,
  $core.String? stateMessage,
  $core.String? artifactGcsUri,
  Service_Tier? tier,
  MaintenanceWindow? maintenanceWindow,
  $core.String? uid,
  MetadataManagementActivity? metadataManagementActivity,
  Service_ReleaseChannel? releaseChannel,
  EncryptionConfig? encryptionConfig,
  NetworkConfig? networkConfig,
  Service_DatabaseType? databaseType,
  TelemetryConfig? telemetryConfig,
  ScalingConfig? scalingConfig,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (createTime != null) {
    $result.createTime = createTime;
  }
  if (updateTime != null) {
    $result.updateTime = updateTime;
  }
  if (labels != null) {
    $result.labels.addAll(labels);
  }
  if (hiveMetastoreConfig != null) {
    $result.hiveMetastoreConfig = hiveMetastoreConfig;
  }
  if (network != null) {
    $result.network = network;
  }
  if (endpointUri != null) {
    $result.endpointUri = endpointUri;
  }
  if (port != null) {
    $result.port = port;
  }
  if (state != null) {
    $result.state = state;
  }
  if (stateMessage != null) {
    $result.stateMessage = stateMessage;
  }
  if (artifactGcsUri != null) {
    $result.artifactGcsUri = artifactGcsUri;
  }
  if (tier != null) {
    $result.tier = tier;
  }
  if (maintenanceWindow != null) {
    $result.maintenanceWindow = maintenanceWindow;
  }
  if (uid != null) {
    $result.uid = uid;
  }
  if (metadataManagementActivity != null) {
    $result.metadataManagementActivity = metadataManagementActivity;
  }
  if (releaseChannel != null) {
    $result.releaseChannel = releaseChannel;
  }
  if (encryptionConfig != null) {
    $result.encryptionConfig = encryptionConfig;
  }
  if (networkConfig != null) {
    $result.networkConfig = networkConfig;
  }
  if (databaseType != null) {
    $result.databaseType = databaseType;
  }
  if (telemetryConfig != null) {
    $result.telemetryConfig = telemetryConfig;
  }
  if (scalingConfig != null) {
    $result.scalingConfig = scalingConfig;
  }
  return $result;
}